add LOGOUT_REDIRECT_URL

This commit is contained in:
Igor Rzegocki 2022-03-31 21:40:14 +02:00
parent 95cf85f8cf
commit d4f534e612
No known key found for this signature in database
GPG key ID: DBF5E35526B27548
2 changed files with 3 additions and 1 deletions

View file

@ -95,6 +95,7 @@ CONFIG_SCHEMA: Dict[str, ConfigDefaultDict] = {
'TIME_ZONE': {'type': str, 'default': 'UTC'},
'REVERSE_PROXY_USER_HEADER': {'type': str, 'default': 'Remote-User'},
'REVERSE_PROXY_WHITELIST': {'type': str, 'default': ''},
'LOGOUT_REDIRECT_URL': {'type': str, 'default': '/'},
},
'ARCHIVE_METHOD_TOGGLES': {

View file

@ -34,7 +34,8 @@ WSGI_APPLICATION = 'core.wsgi.application'
ROOT_URLCONF = 'core.urls'
LOGIN_URL = '/accounts/login/'
LOGOUT_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = os.environ.get('LOGOUT_REDIRECT_URL', '/')
PASSWORD_RESET_URL = '/accounts/password_reset/'
APPEND_SLASH = True