Wednesday, March 27, 2013

Re: Lost CSS & Javascript in Django Admin

Thank you James and Branko.

Yes, it was the relevant part of the docs that, actually I had read,
but didn't understand at the time.
I appreciate your patience in pointing it out to me.

Cheers,
Tim

On Mon, Mar 25, 2013 at 6:57 PM, Branko Majic <branko@majic.rs> wrote:
> 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
> Молим вас да додатке шаљете искључиво у слободним форматима.



--
============================================
Timothy Cook, MSc +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment