From c1431540d0e39d54cca74556354fdd195e9c08b2 Mon Sep 17 00:00:00 2001 From: Nathan Levesque Date: Thu, 15 Aug 2024 12:01:50 -0400 Subject: [PATCH] Expose the SESSION_COOKIE_NAME setting (#1418) --- main/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/settings.py b/main/settings.py index 5802dcdeac..dfe1dc93c3 100644 --- a/main/settings.py +++ b/main/settings.py @@ -165,14 +165,15 @@ ) CSRF_COOKIE_SECURE = get_bool("CSRF_COOKIE_SECURE", True) # noqa: FBT003 -SESSION_COOKIE_DOMAIN = get_string("SESSION_COOKIE_DOMAIN", None) CSRF_COOKIE_DOMAIN = get_string("CSRF_COOKIE_DOMAIN", None) CSRF_HEADER_NAME = get_string("CSRF_HEADER_NAME", "HTTP_X_CSRFTOKEN") - CSRF_TRUSTED_ORIGINS = get_list_of_str("CSRF_TRUSTED_ORIGINS", []) +SESSION_COOKIE_DOMAIN = get_string("SESSION_COOKIE_DOMAIN", None) +SESSION_COOKIE_NAME = get_string("SESSION_COOKIE_NAME", "sessionid") + # enable the nplusone profiler only in debug mode if DEBUG: INSTALLED_APPS += ("nplusone.ext.django",)