Hosting static website with Django
<p>I have Django app running live on AWS at, <code>www.domain.com/admin</code>. It doesn't posses any html pages, we only make use of Django-Admin.</p>

<p>Now I have to host a website at <code>www.domain.com</code>.
I have my website package in this form,</p>

<pre><code>site
 |-sass
 |-js
 |-img
 |-fonts
 |-css
 |-index.html
</code></pre>

<p>I copy-pasted my <code>site</code> folder inside my Django app at <code>my_django_app/templates/</code></p>

<p>Also, added this :</p>

<pre><code>url(r'^$', TemplateView.as_view(template_name='site/index.html')),
</code></pre>

<p>inside <code>my_django_app/my_django_app/urls.py</code>.</p>

<p>And, updated my <code>settings.py</code> with,</p>

<pre><code>STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'templates/site'),
]
</code></pre>

<p>Now when I runserver and go to <code>www.domain.com</code>, it loads my html file without CSS, JS and Images.</p>

<p>Please suggest me what I am doing wrong.</p>

<p>I am a beginner to python and also never hosted a website ever before.</p>

<p>This answer is a reply to <a href="http://stackoverflow.com/questions/39317434/hosting-static-website-with-django?noredirect=1#comment65967301_39317434">this comment</a>, not an answer to the original question.</p>

<ol>
<li><p>In your Apache config, change: <code>WSGIScriptAlias /</code> to <code>WSGIScriptAlias /admin</code>.</p></li>
<li><p>Add this before the <code>&lt;/VirtualHost&gt;</code> closing tag:</p>

<pre><code>Alias / /path/to/static/site/
&lt;Directory /path/to/static/site/&gt;
    Options Indexes FollowSymLinks
    AllowOverride All
    Order Deny,Allow
    Allow from all
&lt;/Directory&gt;
</code></pre></li>
</ol>

<p>I haven't tested it, but I believe this should work.</p>

python django django-templates django-admin