CSS not appearing in production mode.

29 views
Skip to first unread message

Jak

unread,
Jun 17, 2012, 12:34:01 PM6/17/12
to django...@googlegroups.com
Hello All,

I am having a difficult time getting the CSS for my web app to appear when I turn debug mode to false. When debug mode = True all the images show up fine, but when I turn it to false only the html appears. What do you think could be happening?


Thanks

Jak

Kev Dwyer

unread,
Jun 17, 2012, 1:04:24 PM6/17/12
to django...@googlegroups.com
Hello

Assuming that you're using Django 1.3 or later, you should check your static
files setup. See
https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/

Note that DEBUG=True affects how static files are served:
https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/#static-file-
development-view

Cheers

Reply all
Reply to author
Forward
0 new messages