Better login/logout actions

This commit is contained in:
Antoine Nguyen
2024-06-22 19:44:52 +02:00
committed by Spitfireap
parent 794512b69e
commit ece58ddb93
7 changed files with 26 additions and 26 deletions
+4
View File
@@ -67,6 +67,7 @@ INSTALLED_APPS = (
"ckeditor",
"ckeditor_uploader",
"oauth2_provider",
"corsheaders",
"rest_framework",
"rest_framework.authtoken",
"drf_spectacular",
@@ -115,6 +116,7 @@ MIDDLEWARE = (
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.locale.LocaleMiddleware",
"x_forwarded_for.middleware.XForwardedForMiddleware",
"corsheaders.middleware.CorsMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
@@ -168,6 +170,8 @@ ROOT_URLCONF = "test_project.urls"
WSGI_APPLICATION = "test_project.wsgi.application"
CORS_ORIGIN_ALLOW_ALL = True
# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/