CSS not rendering on local server development

35 views
Skip to first unread message

Jim Wombles

unread,
Oct 2, 2012, 11:22:04 PM10/2/12
to django...@googlegroups.com
Greetings,

I am at a loss as to why local server is unable to render the css and js files.  I have the static_dirs setting correct and the href link to the files is correct, and the html file is rendering yet when I track what is going on with Chrome Dev Tools it is unable to find the CSS and JS files returning an Internal Server Error 500

Any idea what may be going on ?

Thanks for any advice.

Jim
Fanbouts.com

JJ Zolper

unread,
Oct 3, 2012, 12:07:33 AM10/3/12
to django...@googlegroups.com
Off the top of my head I forget what kinks I ran into when trying to get CSS to load on my development server. I'll try and come up with things I remembered and let you know if I do.

One thing in Chrome that I tend to have to do (probably why firefox is better in this case) is I have to clear my browsing data. That way the files propagate through to my browser. Here's how to do that:


Did you run python manage.py collectstatic? and restart your local development server with python manage.py runserver?

Cheers,

JJ

Jim Wombles

unread,
Oct 3, 2012, 12:24:09 AM10/3/12
to django...@googlegroups.com
Well, your suggestion actually caused an error that helped me debug what was going on.  Silly mistake of forgetting the comma at the end of the tuple in staticfiles_dirs.  Cheers to you.
Reply all
Reply to author
Forward
0 new messages