mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 12:45: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
|
||||
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/
|
||||
|
@ -327,4 +329,4 @@ LOGGING = {
|
|||
# https://github.com/dr5hn/countries-states-cities-database/tags
|
||||
COUNTRY_REGION_JSON_VERSION = 'v2.6'
|
||||
|
||||
GOOGLE_MAPS_API_KEY = getenv('GOOGLE_MAPS_API_KEY', '')
|
||||
GOOGLE_MAPS_API_KEY = getenv('GOOGLE_MAPS_API_KEY', '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue