Skip to content

yablochkin/django-simplereg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-simplereg

Simple registration app with authentication by email.

How to use

Step 1

$ pip install -e git://github.com/Bers/django-simplereg.git#egg=simplereg

(or clone the source and put module on your path)

Step 2

Add simplereg to INSTALLED_APPS in your settings.py

Step 3

Set new authentication backend to allow login be email.

AUTHENTICATION_BACKENDS = (
    'simplereg.backend.EmailAuthBackEnd',
    'django.contrib.auth.backends.ModelBackend',
)

Step 4

Add views to urls.py

from django.conf.urls.defaults import *
from simplereg.forms import LoginForm

urlpatterns = patterns('',
    url(r'^registration/$', 'simplereg.views.registration', {
            'template_name': 'registration.html',
            'autologin': True,
            'callback': None
        }, name='registration'),
    url(r'^login/$', 'django.contrib.auth.views.login', {
            'authentication_form': LoginForm
        }, name='login'),

    ...

)

About

Realy simple registration app with authentication by email

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages