Skip to content

Commit 672a499

Browse files
committed
use whitenoise static files storage
1 parent 820d24d commit 672a499

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

courtbot/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@
138138
os.path.join(BASE_DIR, 'static'),
139139
]
140140

141+
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
142+
141143
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
142144
SECURE_SSL_REDIRECT = config('SECURE_SSL_REDIRECT', default=not DEBUG)
143145

0 commit comments

Comments
 (0)