Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ctirs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
TIME_ZONE = config('TIME_ZONE')
except UndefinedValueError:
TIME_ZONE = 'UTC'
try:
cookie_domain_name = config('COOKIE_DOMAIN_NAME')
except UndefinedValueError:
cookie_domain_name = None


# Application definition

Expand Down Expand Up @@ -183,7 +188,7 @@
# http で動作させないときは SESSION_COOKIE_SECURE を立てる
if not dev_over_http:
SESSION_COOKIE_SECURE = True

SESSION_COOKIE_DOMAIN = cookie_domain_name
APPEND_SLASH = False

try:
Expand Down