title: Django: How can I apply the login_required decorator to my entire site (excluding static media)?
body: <p>The <a href="http://docs.djangoproject.com/en/dev/topics/auth/#the-login-required-decorator" rel="noreferrer">example</a> provides a snippet for an application level view, but what if I have lots of different (and some non-application) entries in my "urls.py" file, including templates? How can I apply this login_required decorator to each of them?</p>
  
  <pre><code>(r'^foo/(?P&lt;slug&gt;[-\w]+)/$', 'bugs.views.bug_detail'),
  (r'^$', 'django.views.generic.simple.direct_to_template', {'template':'homepage.html'}),
  </code></pre>