Private
Public Access
1
0

attempt to django 4.2

This commit is contained in:
2024-05-23 09:17:00 +02:00
parent 1fef50fabf
commit 49ab756211
6 changed files with 245 additions and 17 deletions

View File

@@ -71,7 +71,9 @@ INSTALLED_APPS = [
'rest_framework',
'datetimewidget',
'rest_framework_swagger',
'oauth2_provider',
# 'oauth2_provider',
'provider',
'provider.oauth2',
'corsheaders',
'analytical',
'cookielaw',
@@ -86,10 +88,12 @@ INSTALLED_APPS = [
]
AUTHENTICATION_BACKENDS = (
'oauth2_provider.backends.OAuth2Backend',
#'oauth2_provider.backends.OAuth2Backend',
# Uncomment following if you want to access the admin
'rules.permissions.ObjectPermissionBackend',
'django.contrib.auth.backends.ModelBackend',
'django.contrib.auth.backends.ModelBackend',
'django.contrib.auth.backends.RemoteUserBackend',
)
MIDDLEWARE = [
@@ -105,7 +109,9 @@ MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'oauth2_provider.middleware.OAuth2TokenMiddleware',
# 'oauth2_provider.middleware.OAuth2TokenMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'provider.oauth2.middleware.Oauth2UserMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'tz_detect.middleware.TimezoneMiddleware',