title: Django: Applying permissions in the URL dispatcher?
body: <p>In my Django application, I have certain permissions which users need in order to access certain views (using <code>django.contrib.auth</code>).  This works fine, using the <code>@permission_required</code> decorator on my view functions.</p>
  
  <p>However, some of my URLs resolve to views which I did not write, such as the built-in <code>django.contrib.auth.views.password_change</code>, as in the following <code>urls.py</code>:</p>
  
  <pre><code>urlpatterns = patterns(
   (r'^$', "users.views.index"),
   (r'^password_change/$', 'django.contrib.auth.views.password_change'))
  </code></pre>
  
  <p>In this instance, I have nowhere to apply my <code>@permission_required</code> decorator -- or do I?  Is there any way to apply a permissions restriction at the URL dispatcher level?</p>