title: What more do I need to do to have Django's @login_required decorator work?
body: <p>I am trying to use Django's account system, including the @login_required decorator. My settings.py file includes <code>django.contrib.auth</code> and I have done a syncdb.</p>
  
  <pre><code>Page not found (404)
  Request Method: GET
  Request URL:    http://localhost:8000/accounts/login/?next=/
  Using the URLconf defined in dashboard.urls, Django tried these URL patterns, in this order:
  ^$ [name='home']
  The current URL, accounts/login/, didn't match any of these.
  You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
  </code></pre>
  
  <p>I see the above after trying to @login_required-decorate my home view.</p>
  
  <p>It seems to be choking because it is redirected to accounts/login/, which I have not prepared for in my urls.py.</p>
  
  <p>What can I add to urls.py or elsewhere so that the login_required decorator will do its usual behaviour?</p>
  
  <p>Thanks,</p>