django allauth email login - always wrong

Had same issue today, my solution was that I was missed the AUTHENTICATION_BACKENDS step when installing allauth.

Ensure you have the following in your settings.py

AUTHENTICATION_BACKENDS = (
    # Needed to login by username in Django admin, regardless of `allauth`
    "django.contrib.auth.backends.ModelBackend",
    # `allauth` specific authentication methods, such as login by e-mail
    "allauth.account.auth_backends.AuthenticationBackend"
)

See http://www.sarahhagstrom.com/2013/09/the-missing-django-allauth-tutorial for a helpful guide


Had the same issue today and none of the above solutions helped. The issue was coming from a custom login template I used to display input fields.

So either use the default way to render forms or make sure you are using login as a name for your email input field :

<input type="email" name="login" required="">
<input type="password" name="password" required=""> 

I previously was using email which was throwing an error

Login doesn't exists