diff --git a/ipv6work/settings.py b/ipv6work/settings.py index 13460bf..25dff27 100644 --- a/ipv6work/settings.py +++ b/ipv6work/settings.py @@ -131,8 +131,16 @@ AUTHENTICATION_BACKENDS = ( 'django_auth_ldap.backend.LDAPBackend', ) -LOGIN_REDIRECT_URL = '/' -LOGOUT_REDIRECT_URL = '/' +USE_X_FORWARDED_HOST = True +FORCE_SCRIPT_NAME = '/ipv6/work/' + +LOGIN_URL = 'login' +LOGOUT_URL = 'logout' +ROOT_URLCONF = 'ipv6work.urls' + + +LOGIN_REDIRECT_URL = FORCE_SCRIPT_NAME +LOGOUT_REDIRECT_URL = FORCE_SCRIPT_NAME # Internationalization # https://docs.djangoproject.com/en/2.1/topics/i18n/