Fix formatting

This commit is contained in:
Tom Pansino 2022-11-23 18:38:58 -08:00 committed by Christopher Charbonneau Wells
parent 6acadcb11b
commit 8716a3108a
1 changed files with 3 additions and 1 deletions

View File

@ -268,7 +268,9 @@ if os.environ.get("SECURE_PROXY_SSL_HEADER"):
# https://docs.djangoproject.com/en/4.0/topics/http/sessions/#settings # https://docs.djangoproject.com/en/4.0/topics/http/sessions/#settings
SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SECURE = bool(strtobool(os.environ.get("SESSION_COOKIE_SECURE") or "False")) SESSION_COOKIE_SECURE = bool(
strtobool(os.environ.get("SESSION_COOKIE_SECURE") or "False")
)
# https://docs.djangoproject.com/en/4.0/ref/csrf/#settings # https://docs.djangoproject.com/en/4.0/ref/csrf/#settings
CSRF_COOKIE_HTTPONLY = True CSRF_COOKIE_HTTPONLY = True