From 74039d4025506210b64ccb7200ad8b1cdb62f88c Mon Sep 17 00:00:00 2001 From: Jacob Pierce Date: Tue, 10 Dec 2024 14:32:00 -0800 Subject: [PATCH] Condition PROD-specific env vars in settings so that DEBUG is basically "dev" mode --- .../instant_schools_settings.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kolibri_instant_schools_plugin/instant_schools_settings.py b/kolibri_instant_schools_plugin/instant_schools_settings.py index eb1ed1d..6667d56 100644 --- a/kolibri_instant_schools_plugin/instant_schools_settings.py +++ b/kolibri_instant_schools_plugin/instant_schools_settings.py @@ -16,9 +16,8 @@ ('pt-br', 'Português'), ] -USE_X_FORWARDED_HOST = True -USE_X_FORWARDED_PORT = True -CSRF_COOKIE_SECURE = True -SESSION_COOKIE_SECURE = True -ALLOW_CERTIFICATE_PUSHING = True - +USE_X_FORWARDED_HOST = (not DEBUG) +USE_X_FORWARDED_PORT = (not DEBUG) +CSRF_COOKIE_SECURE = (not DEBUG) +SESSION_COOKIE_SECURE = (not DEBUG) +ALLOW_CERTIFICATE_PUSHING = (not DEBUG) \ No newline at end of file