Skip to main content


After following the installation instructions, add the following to your based on the required settings from allauth.
# Specify the context processors as follows:
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'context_processors': [
# Already defined Django-related contexts here

# `allauth` needs this from django

# Needed to login by username in Django admin, regardless of `allauth`

# `allauth` specific authentication methods, such as login by email

# The following apps are required:

# ... include the providers you want to enable:


# Add the account middleware:

# The following is necessary to bypass the default templates
ACCOUNT_ADAPTER = "dj_ninja_auth.registration.adapter.NinjaAccountAdapter"
NINJA_AUTH_EMAIL_CONFIRMATION_URL = "http://localhost:8000/confirm-email/"

You do not need to include the allauth URLs in your as the functionality will automatically be present in dj-ninja-auth.

Once you have configured your, run the migrate command to add all the allauth migrations to your database.

python migrate