title: Serving static HTML files without extension in Django
body: <p>I want to serve static html files at development. I want every <code>file.html</code> to be served at <code>/file</code>.</p>
  
  <p>It's clear that in production static files should be served via Nginx or something else.</p>
  
  <p>But how to do it at development, in an elegant way? It would me amazing with <code>index.html</code> at <code>/</code>, also.</p>
  
  <p>What i have now:</p>
  
  <p>In <code>urls.py</code></p>
  
  <pre><code>if settings.DEBUG:
      def index(request):
          return render(request, 'index.html')
      urlpatterns += patterns('', url(r'^$', index))
      urlpatterns += static('/', document_root=settings.BASE_DIR+'/static/')
  </code></pre>
  
  <p>And also in <code>settings.py</code></p>
  
  <pre><code>STATIC_URL = '/static/'
  
  TEMPLATE_DIRS = (
      os.path.join(BASE_DIR, 'static/'),
  )
  </code></pre>