Disclaimer: I am writing this to learn more about custom authentication in django. Inspired by Is it time for password-less login? by Ben Brown
Run this command to install django-nopassword
pip install git+git://github.com/relekang/django-nopassword.git#egg=django-nopassword
Add the app to installed apps
INSTALLED_APPS = (
...
'django_nopassword',
...
)
Set the authentication backend to EmailBackend
AUTHENTICATION_BACKENDS = ( 'django_nopassword.backends.EmailBackend', )
Add urls to your urls.py
urlpatterns = patterns('',
...
url(r'^accounts/', include('django_nopassword.urls')),
...
)