aboutsummaryrefslogtreecommitdiffstats
path: root/config/settings/gcloud_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'config/settings/gcloud_settings.py')
-rw-r--r--config/settings/gcloud_settings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/settings/gcloud_settings.py b/config/settings/gcloud_settings.py
index 3a8912f..a057db8 100644
--- a/config/settings/gcloud_settings.py
+++ b/config/settings/gcloud_settings.py
@@ -169,12 +169,17 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
+ 'config.middleware.LoginRequiredMiddleware'
]
ROOT_URLCONF = 'config.urls'
WSGI_APPLICATION = 'config.wsgi.application'
+LOGIN_EXEMPT_URLS = (
+ r"account/login",
+ r"account/logout"
+)
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases