I tried Django-registration, see this guide to create a complete login system.
In the tutorials (see STEP 4), I need to update the urls.py file to:
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'), )
But when I do this, the admin page is not available. When i accidentally
(r'^admin/(.*)', admin.site.root)
in
(r'^admin/(.*)', admin.site.urls)
Admin work; I could log in, but I could not click on anything ... So I could not see the registered users.
What am I doing wrong?
source share