title: Django isn't serving static files, getting 404 errors
body: <p>I can't seem to get my static files to load from my templates. I've followed the official documentation but I must be missing something.</p>
  
  <p>My directory layout (generated by Django, most files omitted):</p>
  
  <pre><code>myproject
    myproject
      settings.py
      urls.py
    static
      css
        bootstrap.css
        main.css
    templates
      base.html
    myapp1
    myapp2
    ...
    manage.py
  </code></pre>
  
  <p>My <code>settings.py</code>:</p>
  
  <pre><code>STATIC_URL = 'static/'
  </code></pre>
  
  <p>I'm referencing my stylesheets like so (from my templates):</p>
  
  <pre><code>{% load staticfiles %}
  &lt;link rel="stylesheet" href="{% static "css/bootstrap.css" %}" type="text/css"&gt;
  &lt;link rel="stylesheet" href="{% static "css/style.css" %}" type="text/css"&gt; 
  </code></pre>
  
  <p>Which gives this once rendered (in HTML):</p>
  
  <pre><code>&lt;link rel="stylesheet" href="static/css/bootstrap.css" type="text/css"&gt;
  &lt;link rel="stylesheet" href="static/css/style.css" type="text/css"&gt; 
  </code></pre>
  
  <p>Yet these links don't actually lead anywhere (when I visit them I get 404 error from Django). I feel that I could fix this by adding something in <code>urls.py</code>, but I thought Django did this automatically when you run the server? What am I missing?</p>