diff options
author | Yulqen <246857+yulqen@users.noreply.github.com> | 2024-06-07 10:20:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 10:20:55 +0100 |
commit | dad618d6c7fd27db276c404fd2f7a3e1ede96cc0 (patch) | |
tree | c8fc483b0b0e616dd64ba145ec45a36e589c384b /conf/settings/prod.py | |
parent | 29d93f1869fe09d97246c165502331e547f4327d (diff) | |
parent | 76849342a720ea72e1afae6040445582dea3ae51 (diff) |
Merge pull request #98 from defencedigital/postgres-migration
Postgres migration
Diffstat (limited to '')
-rw-r--r-- | conf/settings/prod.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/settings/prod.py b/conf/settings/prod.py index 5b31337..3a3ada2 100644 --- a/conf/settings/prod.py +++ b/conf/settings/prod.py @@ -1,6 +1,7 @@ import os from .base import * +from .base import MIDDLEWARE # Check if running in OpenShift cluster if os.path.exists("/etc/secret-volume"): @@ -31,4 +32,8 @@ DATABASES = { } } +# this middleware entry must be in the correct position in the list +# https://whitenoise.readthedocs.io/en/latest/#quickstart-for-django-apps +MIDDLEWARE.insert(1, "whitenoise.middleware.WhiteNoiseMiddleware") + STATIC_ROOT = "/app/static" |