1 2 3 4 5
AUTHENTICATION_BACKENDS = ( 'profile.backends.EmailOrUsernameModelBackend', 'django.contrib.auth.backends.ModelBackend', )