title: Is it possible to decorate include(...) in django urls with login_required?
body: <p>I have a few restricted areas on the site, for which I would like to specify <code>login_required</code> decorator. However I would like to do that once per inclusion in main urls.py, not per individual url in included urls.py</p>
  
  <p>So instead of:</p>
  
  <p>/private/urls.py:</p>
  
  <pre><code>(r'^profile/$', login_required(profile)),
  </code></pre>
  
  <p>I'd do something along the lines:</p>
  
  <p>/urls.py</p>
  
  <pre><code>urlpatterns = patterns('',
                        ...
                        (r'^private/', login_required(include('private'))),
                        )
  </code></pre>
  
  <p>Except that it doesn't work, unfortunately.</p>