I’m looking for a "ready" example of a Login/Register/Authentication system for my site written in Python (so with Django I suppose).
EDIT:
I’ve tried the Django-registration, see this tutorial
In the tutorials (see STEP 4), I need to update the file urls.py 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 chance
(r'^admin/(.*)', admin.site.urls)
instead of
(r'^admin/(.*)', admin.site.root)
When I do this, I could login to the Admin page, but I couldn’t click on anything…
What am I doing wrong?
https://github.com/ubernostrum/django-registration