title: Django static files 404 error
body: <p>I'm trying to locate all bootstrap files in django project in only one folder and reference them. In order to do that I've added these lines to setting.py:</p>
  
  <pre><code>STATIC_URL = '/static/'
  STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  </code></pre>
  
  <p>My base.html looks like this:</p>
  
  <pre><code>{% load static %}
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Muplay&lt;/title&gt;
      &lt;link rel="stylesheet" type="text/css" href="{% static'css/bootstrap.css' %}"&gt;
      &lt;script src="{% static 'js/bootstrap.js' %}"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body style="background-color: #F2F2F5"&gt;
      {% include 'snippets/nav.html' %}
      &lt;div class="container"&gt;
          {% block content %}{% endblock %}
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I extend this base.html to other html files css and js file is loaded successfully in browser. But, problem is that, in terminal, django returns 404 error as follows:</p>
  
  <pre><code>[10/Dec/2017 14:03:27] "GET /static/js/bootstrap.js HTTP/1.1" 404 1759
  [10/Dec/2017 14:03:27] "GET /static/css/bootstrap.css HTTP/1.1" 404 1765
  </code></pre>
  
  <p>Why django returns 404 code while those static files are successfully loaded in browser?</p>