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"