title: django static files not working
body: <p>For some reason, django is not serving up my static files.</p>
  
  <p>I have already looked at a bunch of fixes for this problem, but I still have not found a solution.</p>
  
  <p>Here is my configuration:</p>
  
  <p>urls.py</p>
  
  <pre><code>urlpatterns = patterns('',
      (r'^$', index),
      (r'^ajax/$', ajax),
      (r'^static/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': path.join(path.dirname(__file__), 'static')}),
  )
  </code></pre>
  
  <p>settings.py</p>
  
  <pre><code>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',
  )
  </code></pre>
  
  <p>When I navigate to <code>http://localhost:8000/static/css/default.css</code><br>
  I get this error: <code>'css/default.css' could not be found</code></p>
  
  <p>When I navigate to <code>http://localhost:8000/static/</code><br>
  I get this error: <code>Directory indexes are not allowed here.</code></p>
  
  <p>It looks like the static directory is getting mapped out, but the sub-directories are not.</p>