For some reason, django is not serving up my static files.
I have already looked at a bunch of fixes for this problem, but I still have not found a solution.
Here is my configuration:
urls.py
urlpatterns = patterns('',
(r'^$', index),
(r'^ajax/$', ajax),
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': path.join(path.dirname(__file__), 'static')}),
)
settings.py
STATIC_ROOT = '/home/aurora/Code/django/test/static/'
STATIC_URL = '/static/'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)
When I navigate to http://localhost:8000/static/css/default.css
I get this error: 'css/default.css' could not be found
When I navigate to http://localhost:8000/static/
I get this error: Directory indexes are not allowed here.
It looks like the static directory is getting mapped out, but the sub-directories are not.