aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-07-03 16:37:19 +0200
committerGravatar Leon Sandøy <[email protected]>2019-07-03 16:37:19 +0200
commit1616d7a467e9df3996a8080b00809648a5df14a3 (patch)
tree9da2d51f6ba0e78a5ceb85291d6bcf5e8ef350c6 /pydis_site/settings.py
parentLet's increase the verbosity and see what you guys have to say, migrate and c... (diff)
Adding whitenoise to the toolchain to serve static images
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r--pydis_site/settings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 627718dd..06eb9743 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -99,6 +99,7 @@ MIDDLEWARE = [
'django_hosts.middleware.HostsRequestMiddleware',
'django.middleware.security.SecurityMiddleware',
+ 'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@@ -194,6 +195,7 @@ STATICFILES_FINDERS = [
'django_simple_bulma.finders.SimpleBulmaFinder',
]
+STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
# django-hosts
# https://django-hosts.readthedocs.io/en/latest/