title: Django -- Can't get static CSS files to load
body: <p>I'm running Django's development server (<code>runserver</code>) on my local machine (Mac OS X) and cannot get the CSS files to load.</p>
  
  <p>Here are the relevant entries in settings.py:</p>
  
  <pre><code>STATIC_ROOT = '/Users/username/Projects/mysite/static/'
  
  STATIC_URL = '/static/'
  
  STATICFILES_DIRS = (
  '/Users/thaymore/Projects/mysite/cal/static',
  )
  
  STATICFILES_FINDERS = (
  'django.contrib.staticfiles.finders.FileSystemFinder',
  'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  #'django.contrib.staticfiles.finders.DefaultStorageFinder',
  )
  
  INSTALLED_APPS = (
  # other apps ...
  'django.contrib.staticfiles',
  )
  </code></pre>
  
  <p>In my views.py I'm requesting the context:</p>
  
  <pre><code>return render_to_response("cal/main.html",dict(entries=entries),context_instance=RequestContext(request))
  </code></pre>
  
  <p>And in my template the <code>{{ STATIC_URL }}</code> renders correctly:</p>
  
  <pre><code>&lt;link type="text/css" href="{{ STATIC_URL }}css/main.css" /&gt;
  </code></pre>
  
  <p>Turns into:</p>
  
  <pre><code>&lt;link type="text/css" href="/static/css/main.css"/&gt;
  </code></pre>
  
  <p>Which is where the file is actually located.  I also ran <code>collectstatic</code> to make sure all the files were collected.</p>
  
  <p>I also have the following lines in my urls.py:</p>
  
  <pre><code>from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  urlpatterns += staticfiles_urlpatterns()
  </code></pre>
  
  <p>I'm new to Django so am probably missing something simple -- would appreciate any help.</p>