title: Django/Apache/Mod_WSGI - HTTP 404 Error with Static Files
body: <p>I'm trying to use Django + Apache + WSGI on Windows.</p>
  
  <p>I've been using the Bitnami stack so that it takes care of installation of Apache. I was able to put a Django Project on Django, however, it loads up the  webpage without any static files (css, js). So I've opened the Apache logs and all the static files are shown as 404.</p>
  
  <p>This is my httpd-app.conf:</p>
  
  <pre><code>&lt;Directory "E:/Bitnami/djangostack-1.6.7-1/apps/django/django_projects/Dashboard_Web/Dashboard_Web"&gt;
      Options +MultiViews
      AllowOverride All
      &lt;IfVersion &lt; 2.3 &gt;
          Order allow,deny
          Allow from all
      &lt;/IfVersion&gt;
      &lt;IfVersion &gt;= 2.3&gt;
          Require all granted
          Options All
      &lt;/IfVersion&gt;
      Options +ExecCGI
  
  
  WSGIApplicationGroup %{GLOBAL}
      &lt;IfVersion &lt; 2.3 &gt;
          Order allow,deny
          Allow from all
      &lt;/IfVersion&gt;
      &lt;IfVersion &gt;= 2.3&gt;
          Require all granted
          Options All
      &lt;/IfVersion&gt;
      Options All
      AllowOverride All
      Options Indexes FollowSymLinks
      Options +ExecCGI           
  &lt;/Directory&gt;
  
  
  Alias /static/ 'E:/Bitnami/djangostack-1.6.7-1/apache2/static/'
  
  &lt;Directory 'E:/Bitnami/djangostack-1.6.7-1/apache2/static'&gt;
      &lt;IfVersion &lt; 2.3 &gt;
          Order allow,deny
          Allow from all
      &lt;/IfVersion&gt;
      &lt;IfVersion &gt;= 2.3&gt;
          Require all granted
          Options All
      &lt;/IfVersion&gt;
          Require all granted
      Options All
      AllowOverride All
      Options Indexes FollowSymLinks
  &lt;/Directory&gt;
  
  &lt;Directory /&gt;
      Require all granted
  &lt;/Directory&gt;
  
  WSGIScriptAlias /Dashboard_Web 'E:/Bitnami/djangostack-1.6.7-1/apps/django/django_projects/Dashboard_Web/Dashboard_Web/wsgi.py'
  </code></pre>
  
  <p>This is my settings.py:</p>
  
  <pre><code>STATIC_URL = '/static/'
  STATIC_ROOT = "E:/Bitnami/djangostack-1.6.7-1/apache2/static/"
  </code></pre>
  
  <p>For the static files, I've used <code>python manage.py collectstatic</code> and it would generate all the static files <code>"E:/Bitnami/djangostack-1.6.7-1/apache2/static/</code>", so I can automate it with <code>Fabric</code> (so I don't need to update static files by typing <code>python manage.py collectstatic</code> myself).</p>
  
  <p>Alias seems to be pointing to the right folder, because it is searchable in Windows Explorer. So I'm not sure why this is happening, can anyone point me to the right direction?</p>
  
  <p>Thanks.</p>
  
  <p>Edit: This is what looks in an html page</p>
  
  <pre><code>&lt;script type="text/javascript" src="/static/WebApp/jquery-2.1.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/static/WebApp/login.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/static/WebApp/bootstrap-3.2.0-dist/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/static/WebApp/zxcvbn-master/zxcvbn.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/static/WebApp/jquery.pwstrength.bootstrap-1.2.2/dist/pwstrength-bootstrap-1.2.2.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>This is how I link to static files</p>
  
  <pre><code>{% load staticfiles %}
  &lt;script type="text/javascript" src="{% static 'WebApp/jquery-2.1.1.min.js' %}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="{% static 'WebApp/index.js' %}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="{% static 'WebApp/bootstrap-3.2.0-dist/js/bootstrap.min.js' %}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="{% static 'WebApp/flot/jquery.flot.js' %}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="{% static 'WebApp/DataTables-1.10.2/media/js/jquery.dataTables.min.js' %}"&gt;&lt;/script&gt;
  </code></pre>