1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

feat: allow user to override SESSION_COOKIE_DOMAIN with env variable

This commit is contained in:
kraftnix 2025-06-14 02:17:47 +02:00
parent 71ff217323
commit b19d667d51

View file

@ -168,6 +168,8 @@ else:
# Fallback to the hostname if parsing fails
SESSION_COOKIE_DOMAIN = hostname
# Allow user to set their own SESSION_COOKIE_DOMAIN
SESSION_COOKIE_DOMAIN = env('SESSION_COOKIE_DOMAIN', default=SESSION_COOKIE_DOMAIN)
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/