title: How to properly reverse the Django auth login?
body: <p>Ok, so all I want to do is to redirect the user to the login page based on some logic in my view. I've tried:</p>
  
  <pre><code>reverse('django.contrib.auth.views.login')
  </code></pre>
  
  <p>and I've also tried creating a unique entry in my app's urls.py</p>
  
  <pre><code>from django.contrib.auth.views import login
  urlpatterns = patterns('',
      url(r'^login/', login, name='my-login'),
  )
  </code></pre>
  
  <p>Then in my view</p>
  
  <pre><code>reverse('my-login')
  </code></pre>
  
  <p>but they both give me a NoReverseMatch error. </p>
  
  <p>What is the proper way to do this?</p>