summaryrefslogtreecommitdiffstats
path: root/conf/settings/base.py
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-06-06 18:26:52 +0100
committerGitHub <noreply@github.com>2024-06-06 18:26:52 +0100
commitdf25eb2064b9525b684601077f0b61d358bbf5bd (patch)
tree5572889ea833b01d3cee1217057056e57b85f70f /conf/settings/base.py
parent5c99975b8c0de2950c71dc053c986b2a3f84abab (diff)
parentc5c5a3ac0fef11f5c5cf91a15c33fa3841873e6c (diff)
Merge pull request #96 from defencedigital/postgres-migration
Postgres migration
Diffstat (limited to 'conf/settings/base.py')
-rw-r--r--conf/settings/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/settings/base.py b/conf/settings/base.py
index a16c488..0d7078a 100644
--- a/conf/settings/base.py
+++ b/conf/settings/base.py
@@ -9,6 +9,7 @@ https://docs.djangoproject.com/en/4.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
"""
+
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -20,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
CSRF_TRUSTED_ORIGINS = [
- 'https://*.apps.ocp1.azure.dso.digital.mod.uk',
+ "https://*.apps.ocp1.azure.dso.digital.mod.uk",
]
# Quick-start development settings - unsuitable for production
@@ -64,6 +65,7 @@ INTERNAL_IPS = ["127.0.0.1", "localhost"]
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
+ "whitenoise.middleware.WhiteNoiseMiddleware",
# "debug_toolbar.middleware.DebugToolbarMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",