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:
parent
71ff217323
commit
b19d667d51
1 changed files with 3 additions and 1 deletions
|
@ -168,6 +168,8 @@ else:
|
||||||
# Fallback to the hostname if parsing fails
|
# Fallback to the hostname if parsing fails
|
||||||
SESSION_COOKIE_DOMAIN = hostname
|
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)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/1.7/howto/static-files/
|
# https://docs.djangoproject.com/en/1.7/howto/static-files/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue