Possible Duplicate:
Django and Serving Static Files
I am with one problem to load CSS at base.html. I put all css files at the directory /static.
At urls.py
I put this code:
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{ 'document_root': '/home/bkcherry/botstore/botstore/static' }),
)
And at base.html i put the following:
<link rel="Stylesheet" type="text/css" href="/static/css.css" />
When I go to the main.html, the css style is not working. I need to configure the settings.py MEDIA_ROOT
, MEDIA_URL
or STATIC_ROOT
?