diff --git a/backend/server/main/settings.py b/backend/server/main/settings.py index 073fd77..8186eb5 100644 --- a/backend/server/main/settings.py +++ b/backend/server/main/settings.py @@ -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', '') \ No newline at end of file +GOOGLE_MAPS_API_KEY = getenv('GOOGLE_MAPS_API_KEY', '')