From 498eddf5b62f242f70e8decc2df704ab8742db6a Mon Sep 17 00:00:00 2001 From: MagiX13 Date: Sun, 19 Dec 2021 00:51:27 +0100 Subject: [PATCH] Serve login pages using the SCRIPT_NAME if available --- babybuddy/settings/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/babybuddy/settings/base.py b/babybuddy/settings/base.py index c2a3135f..16bc9248 100644 --- a/babybuddy/settings/base.py +++ b/babybuddy/settings/base.py @@ -143,11 +143,11 @@ AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', ] -LOGIN_REDIRECT_URL = '/' +LOGIN_REDIRECT_URL = '' -LOGIN_URL = '/login/' +LOGIN_URL = 'login/' -LOGOUT_REDIRECT_URL = '/login/' +LOGOUT_REDIRECT_URL = 'login/' # Timezone