Update to include allauth
Some checks failed
Urania unit tests / Run-unit-tests (push) Failing after 17s

This commit is contained in:
2025-10-17 13:23:11 +02:00
parent feb4663a3f
commit 23726be79a
5 changed files with 20 additions and 11 deletions

View File

@@ -30,6 +30,16 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"allauth",
"allauth.account",
]
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 email
'allauth.account.auth_backends.AuthenticationBackend',
]
MIDDLEWARE = [
@@ -40,6 +50,7 @@ MIDDLEWARE = [
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"allauth.account.middleware.AccountMiddleware",
]
ROOT_URLCONF = "config.urls"