Re: Lost CSS & Javascript in Django Admin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBAgAGBQJRUMhlAAoJEFjlhRo+xFTEOjQQAIEhq09pD2fpOB3H+cqs5Jyl
BI3YPvri9Z70baQFFMWwVE3ktbxE/SGXqW0DtiKP3buOf6EuBnvL9lqOIK8bpl+t
S5/Flt1yoDB2qwjAINXmbzELH9V/qfQFpc+kXR5vhdthRaKwq+sV5lfl/C/wv7Kz
2ZTLVFWtVyxJhqhl4GSG8ie3oQjSD2K/mj8fK1Spj915Rx2agiVTeOUx+vHoXaLx
89xKlh2pL3GIsUMzzHG7aqOpki9aIj1nWRD1jFIEo3Mie0Yh0gRn2chFtPQI2Lfn
qSOPUu1wauDY2JR9rRfO5Mxzq7oQ4hiivjCqr8nF+kGOMrwmFrP28OHGH4iAgwrv
wSljcl1bPT8OoL1Jlc9fHQFMhoRnr7e3GOWdHHdzdwRIv6CqBVKgBpbJEaTovup3
Ao2epjbuekAB7o1XImW13JAr9upiWwU1zDxACa5jGgXdch/mT9C01QbAahAInJZv
6fJVnzvdu/OXUpHUWb1YjH7i6GMknXDe5ptprFLsm6KioQJIq6aTRNOjJsuM0sCc
Yx1G1f/j6hpsxWEp6i26qRDPSeNYvbH4n/tE5bHbUe3dec4tTlFhqw1IXbyI8EoX
X/0fWF6F6lalBpm7xaxgoOnKqIjPy9clGGL5cZCd09IRvF3loHuoA0FEQcmd/27v
ck3EUBg14JHnmfNF1Zxq
=Qrlh
-----END PGP SIGNATURE-----
On Mon, 25 Mar 2013 18:12:44 -0300
Tim Cook <tim@mlhim.org> wrote:
> The Apache error.log has these types of entries:
> "GET /static/admin/css/base.css HTTP/1.1" 404
> "GET /static/admin/css/dashboard.css HTTP/1.1" 404
> "GET /static/admin/js/actions.js HTTP/1.1" 404
Did you follow-through the "Serving the admin files" section of the
modwsgi instructions? In case of development server, it will
automagically take care of serving the static content for you. In case
of production servers like Apache, you will have to take care of that
yourself.
So, you need to configure Apache to serve the static files at
path /static/, from some directory, and fill-up this directory with
all the necessary static files.
The recommended way is to use the manage.py collectstatic command (at
least from what I've seen, I'm a beginner myself).
Best regards
--
Branko Majic
Jabber: branko@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
Џабер: branko@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home