Tuesday, October 2, 2012

Re: CSS not rendering on local server development

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

On Tuesday, October 2, 2012 11:23:11 PM UTC-4, Jim Wombles wrote:
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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/_yzlMm95zPkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment