From 01fa6619f600e616861404768fba2c7f4d255f15 Mon Sep 17 00:00:00 2001 From: Arvind-4 Date: Sun, 1 Oct 2023 16:18:10 +0530 Subject: [PATCH] Updated: commented security settings --- web/backend/settings/production.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/web/backend/settings/production.py b/web/backend/settings/production.py index c4ede37..06eb183 100644 --- a/web/backend/settings/production.py +++ b/web/backend/settings/production.py @@ -38,19 +38,19 @@ from backend.db.postgres_db import * #noqa from backend.email.gmail import * #noqa -if DJANGO_LIVE and not DJANGO_DEBUG: - print("SECURE SETTINGS") - SECURE_HSTS_SECONDS = True - SECURE_HSTS_PRELOAD = True +# if DJANGO_LIVE and not DJANGO_DEBUG: +# print("SECURE SETTINGS") +# SECURE_HSTS_SECONDS = True +# SECURE_HSTS_PRELOAD = True - CSRF_COOKIE_SECURE = True - SESSION_COOKIE_SECURE = True +# CSRF_COOKIE_SECURE = True +# SESSION_COOKIE_SECURE = True - SECURE_SSL_REDIRECT = True - SECURE_HSTS_INCLUDE_SUBDOMAINS = True +# SECURE_SSL_REDIRECT = True +# SECURE_HSTS_INCLUDE_SUBDOMAINS = True - SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') - SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' +# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +# SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' print("DJANGO_LIVE:", DJANGO_LIVE) print("DJANGO_DEBUG:", DJANGO_DEBUG) \ No newline at end of file