From 766b5670d0e420b09594116ce832aec975e036ff Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 17 Oct 2020 15:53:08 +0100 Subject: fixed middleware issue, brought back missing jquery links and added body padding to project.css --- config/settings/gcloud_settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/settings/gcloud_settings.py') diff --git a/config/settings/gcloud_settings.py b/config/settings/gcloud_settings.py index a057db8..f7ccbc8 100644 --- a/config/settings/gcloud_settings.py +++ b/config/settings/gcloud_settings.py @@ -172,13 +172,17 @@ MIDDLEWARE = [ 'config.middleware.LoginRequiredMiddleware' ] +LOGIN_REDIRECT_URL = "users:redirect" + ROOT_URLCONF = 'config.urls' WSGI_APPLICATION = 'config.wsgi.application' +LOGIN_URL = "/accounts/login" + LOGIN_EXEMPT_URLS = ( - r"account/login", - r"account/logout" + r"^account/login/$", + r"^account/logout/$" ) # Database -- cgit v1.2.3