title: How to load CSS in Django templates?
body: <p>I'm having trouble loading CSS for my Django template.</p>
  
  <p>I have the following settings:</p>
  
  <pre><code>STATIC_ROOT = ''
  STATIC_URL = '/css/'
  STATICFILES_DIRS = ("/css")
  INSTALLED_APPS = (
      'django.contrib.staticfiles',
  )
  </code></pre>
  
  <p>Do I need to use both <code>static_url</code> and also <code>staticfiles_dirs</code>?</p>
  
  <p>urls.py is</p>
  
  <pre><code>urlpatterns = patterns('',
      (r'^$',homefun),
  )
  </code></pre>
  
  <p>views.py is</p>
  
  <pre><code>def homefun(request):
      return render_to_response('home.html')
  </code></pre>
  
  <p>And the parent template is base.html which loads the css. </p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="/css/style.css" /&gt;
  </code></pre>