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

@@ -1,9 +1,6 @@
""" """
ASGI config for config project. ASGI config for pda-next project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.2/howto/deployment/asgi/ https://docs.djangoproject.com/en/5.2/howto/deployment/asgi/
""" """

View File

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

View File

@@ -1,5 +1,5 @@
""" """
URL configuration for config project. URL configuration for pda-next.
The `urlpatterns` list routes URLs to views. For more information please see: The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.2/topics/http/urls/ https://docs.djangoproject.com/en/5.2/topics/http/urls/
@@ -16,8 +16,9 @@ Including another URLconf
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path, include
urlpatterns = [ urlpatterns = [
path("admin/", admin.site.urls), path("admin/", admin.site.urls),
path('accounts/', include('allauth.urls')),
] ]

View File

@@ -1,10 +1,7 @@
""" """
WSGI config for config project. WSGI config for pda-new
It exposes the WSGI callable as a module-level variable named ``application``. See https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
For more information on this file, see
https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
""" """
import os import os

View File

@@ -1,6 +1,9 @@
asgiref==3.9.1 asgiref==3.9.1
Django==5.2.5 Django==5.2.5
django-allauth==65.12.1
django-environ==0.12.0
dotenv==0.9.9 dotenv==0.9.9
environ==1.0
psycopg==3.2.9 psycopg==3.2.9
python-dotenv==1.1.1 python-dotenv==1.1.1
sqlparse==0.5.3 sqlparse==0.5.3