root: use different cookie names for dev instance

This commit is contained in:
Jens Langhammer 2020-02-20 17:08:11 +01:00
parent 40a2a26904
commit 3c04afa31f
1 changed files with 8 additions and 3 deletions

View File

@ -49,10 +49,15 @@ LOGIN_URL = "passbook_core:auth-login"
# Custom user model
AUTH_USER_MODEL = "passbook_core.User"
if DEBUG:
CSRF_COOKIE_NAME = "passbook_csrf_debug"
LANGUAGE_COOKIE_NAME = "passbook_language_debug"
SESSION_COOKIE_NAME = "passbook_session_debug"
else:
CSRF_COOKIE_NAME = "passbook_csrf"
LANGUAGE_COOKIE_NAME = "passbook_language"
SESSION_COOKIE_NAME = "passbook_session"
SESSION_COOKIE_DOMAIN = CONFIG.y("domain", None)
LANGUAGE_COOKIE_NAME = "passbook_language"
AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend",