title: Django serve static index.html with view at '/' url
body: <p>I have my index.html in /static/ folder. My django app is running ok when i try:</p>
  
  <pre><code>http://127.0.0.1:8000/index.html
  </code></pre>
  
  <p>But i want to acces index.html by url:</p>
  
  <pre><code>http://127.0.0.1:8000/
  </code></pre>
  
  <p>I wrote a view and it works:</p>
  
  <pre><code>class IndexView(TemplateView):
      template_name = 'index.html'
  </code></pre>
  
  <p>I also added to urls.py(this lets me serve static like <code>http://127.0.0.1:8000/css/style.css</code>):</p>
  
  <pre><code>url(r'^(?P&lt;path&gt;.*)$', 'django.contrib.staticfiles.views.serve', {
              'document_root': settings.STATIC_ROOT, 'show_indexes':True
          }),
  </code></pre>
  
  <p>But i think there is a way to do what i want without TemplateView.</p>
  
  <p>Any suggestions? Thanks. My django version is: <strong>Django 1.5</strong> </p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>The reason i placed index.html into static: i want to make Phonegap compatible django app, so after proper coding, all i have to do is --> <strong>make .zip from static</strong> folder and upload it to Phonegap as mobile app. Easy and clean.</p>