title: django static files through apache in windows
body: <p>I have configured apache to serve my project. But I can't yet configure it to serve static files. Till now in my httpd.conf I have appended the code that django documentation provides and its like this:</p>
  
  <pre><code>WSGIScriptAlias / C:/Users/robin/web/facebook/facebook/wsgi.py
  WSGIPythonPath C:/Users/robin/web/facebook/
  
  &lt;Directory C:/Users/robin/web/facebook/facebook&gt;
  &lt;Files wsgi.py&gt;
  Order deny,allow
  Allow from all
  &lt;/Files&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>.html:</p>
  
  <pre><code>{% load static from staticfiles %}
  &lt;html&gt;
  
      &lt;head&gt;
          &lt;title&gt;Add facebook friends&lt;/title&gt;
          &lt;link rel="stylesheet" type="text/css" href="{% static "assets/css/face.css" %}"&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
      &lt;header&gt;
          &lt;div id="main"&gt;
              &lt;div id="facebookFriend"&gt;
                  &lt;a href="http://www.facebook.com"&gt;&lt;img src="{% static "assets/images/friend.png" %}" width="202.5" class="logo"/&gt;&lt;/a&gt;
              &lt;/div&gt;
              &lt;div id="formId"&gt;
                  &lt;form action="/face/" method="post" class="mainForm"&gt;{% csrf_token %}
                      &lt;label for="email" class="label1"&gt;Email&lt;/label&gt;
                      &lt;input type="text" name="email" value="" id="email" class="field1"&gt;
  
                      &lt;label for="password" class="label2"&gt;Password&lt;/label&gt;
                      &lt;input type="password" name="password" value="" id="password" class="field2"&gt;
  
                      &lt;input type="submit" value="" id="button"/&gt;&lt;/input&gt;
                  &lt;/form&gt;
                  &lt;input type="checkbox" name"check" value="" id="check"&gt;&lt;/br&gt;
                  &lt;p id="k"&gt;Keep me logged in&lt;/p&gt;
                  &lt;p id="f"&gt;&lt;a href="https://www.facebook.com/recover/initiate" id="for"&gt;Forgot your password?&lt;/a&gt;&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/header&gt;
  
      &lt;footer&gt;
          &lt;div id="footer"&gt;
              &lt;div id="jabong"&gt;
                  &lt;a href="https://www.jabong.com"&gt;&lt;img src="{% static "assets/images/jabong.jpg" %}"&gt;&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/footer&gt;
  </code></pre>
  
  <p>snippets settings.py:</p>
  
  <pre><code>STATIC_ROOT = 'C:/Users/robin/web/static_files_for_facebook/'
  
  # URL prefix for static files.
  # Example: "http://example.com/static/", "http://static.example.com/"
  STATIC_URL = '/static/'
  </code></pre>
  
  <p>Now, what next do I do to serve static files through apache server. I know its best to serve static files through nginx or other server, but it was to hard to find tutorial for windows. So I would highly appreciate if someone would guide me to serve static files throught apache as I am half way down there, in windows. Or if some tutorials for other server for windows will also be appreciated. Thank you!</p>