title: Django: How to map urls to views dynamically with or without urls.py
body: <p>I have huge <code>urls.py</code> with dozen of lines like:</p>
  
  <pre><code>url(r'^do_foo$', views.do_foo),
  </code></pre>
  
  <p>i.e. url exactly match name of function within views.</p>
  
  <p>I don't want to create a dispatcher that takes url as parameter and find the appropriate method for performance reason. </p>
  
  <p><strong>Q:</strong></p>
  
  <p>Is there a way to either shorten <code>urls.py</code> to one line like</p>
  
  <pre><code>url(r'^(.*)$', 'views.\\1'),
  </code></pre>
  
  <p>or get rid of <code>urls.py</code> entirely.</p>