From 8ce869393eda0580015b4acdf393ec5cf802fca6 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Fri, 25 Aug 2023 21:50:53 +0200 Subject: [PATCH] cache: cache statics --- spejstore/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spejstore/settings.py b/spejstore/settings.py index f3f66c0..ec3a311 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -165,6 +165,12 @@ SOCIAL_AUTH_PIPELINE = ( "social_core.pipeline.user.user_details", ) +STORAGES = { + "staticfiles": { + "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage", + }, +} + # Internationalization # https://docs.djangoproject.com/en/1.10/topics/i18n/