diff --git a/example_project/provider_app/settings.py b/example_project/provider_app/settings.py index 075aa10..0978c1e 100644 --- a/example_project/provider_app/settings.py +++ b/example_project/provider_app/settings.py @@ -11,22 +11,20 @@ TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['*'] - # Application definition -INSTALLED_APPS = ( +INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'provider_app', 'oidc_provider', -) +] -MIDDLEWARE_CLASSES = ( +MIDDLEWARE_CLASSES = [ 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', @@ -34,13 +32,28 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', -) +] + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] ROOT_URLCONF = 'provider_app.urls' WSGI_APPLICATION = 'provider_app.wsgi.application' - # Database DATABASES = { @@ -62,18 +75,15 @@ USE_L10N = True USE_TZ = True - # Static files (CSS, JavaScript, Images) STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static/') - # Custom settings LOGIN_REDIRECT_URL = '/' - # OIDC Provider settings SITE_URL = 'http://localhost:8000'