From 3015e016a5f4ab46e434f05a6a74cd527e737420 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 13:37:50 +0300 Subject: [PATCH] ... --- src/conf/settings.py | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/src/conf/settings.py b/src/conf/settings.py index 8ab9504..19a19e1 100644 --- a/src/conf/settings.py +++ b/src/conf/settings.py @@ -100,6 +100,11 @@ DATABASES = { AUTH_USER_MODEL = 'jwtauth.CustomUser' +AUTHENTICATION_BACKENDS = ( + 'django.contrib.auth.backends.ModelBackend', + 'jwtauth.backends.JWTAuthentication', +) + # Password validation # https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators @@ -193,28 +198,6 @@ CACHES = { } } -LOGGING = { - 'version': 1, - 'filters': { - 'require_debug_true': { - '()': 'django.utils.log.RequireDebugTrue', - } - }, - 'handlers': { - 'console': { - 'level': 'DEBUG', - 'filters': ['require_debug_true'], - 'class': 'logging.StreamHandler', - } - }, - 'loggers': { - 'django.db.backends': { - 'level': 'DEBUG', - 'handlers': ['console'], - } - } -} - SESSION_ENGINE = "django.contrib.sessions.backends.cache" SESSION_CACHE_ALIAS = "default"