From 5a0fea65fb24451d459ce5e1eeef9366c3059ee3 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:25:10 +0000 Subject: [PATCH 1/2] Disable Django Debug Mode --- twitter/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/settings.py b/twitter/settings.py index 787a555..e9f56d3 100644 --- a/twitter/settings.py +++ b/twitter/settings.py @@ -23,7 +23,7 @@ SECRET_KEY = '+sr35*#-$zo3kj8+ey6mih$fgcrdo6!8n1m*co7)4v14848s6o' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ['127.0.0.1', '192.168.33.10', 'localhost'] INTERNAL_IPS = ['192.168.65.1'] From 6fe4cecfb32ebbc906752cba80703470b1451b22 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:25:10 +0000 Subject: [PATCH 2/2] Secure Setting for Django `SESSION_COOKIE_SECURE` flag --- twitter/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/twitter/settings.py b/twitter/settings.py index e9f56d3..01ac89e 100644 --- a/twitter/settings.py +++ b/twitter/settings.py @@ -149,3 +149,4 @@ from .local_settings import * except: pass +SESSION_COOKIE_SECURE = True