title: Django login system
body: <p>I'm looking for a &quot;ready&quot; example of a Login/Register/Authentication system for my site written in Python (so with Django I suppose).</p>
  <p><strong>EDIT:</strong></p>
  <p>I've tried the Django-registration, <a href="http://devdoodles.wordpress.com/2009/02/16/user-authentication-with-django-registration/" rel="nofollow noreferrer">see this tutorial</a></p>
  <p>In the tutorials (see STEP 4), I need to update the file urls.py to:</p>
  <pre><code>from django.conf.urls.defaults import *
  from django.views.generic.simple import direct_to_template
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      (r'^admin/(.*)', admin.site.root),
      (r'^accounts/', include('registration.urls')),
      (r'^$', direct_to_template,
              { 'template': 'index.html' }, 'index'),
  )
  </code></pre>
  <p>But when I do this, the Admin page is not available.
  When I chance</p>
  <pre><code>(r'^admin/(.*)', admin.site.urls)
  </code></pre>
  <p>instead of</p>
  <pre><code>(r'^admin/(.*)', admin.site.root)
  </code></pre>
  <p>When I do this, I could login to the Admin page, but I couldn't click on anything...</p>
  <p>What am I doing wrong?</p>