Implements email based login with Django >= 1.5.
pip install django-custom-auth
INSTALLED_APPS += ( 'custom_auth', )
AUTHENTICATION_BACKENDS = ('custom_auth.auth.Authenticate',)
AUTH_USER_MODEL = 'custom_auth.User'
url(r'^accounts/', include('custom_auth.urls')),
user = models.ForeignKey(settings.AUTH_USER_MODEL)
from django.contrib.auth import get_user_model