From 0a0f3350bf4c0a0f459928fbc0a140d59676e9d8 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Mon, 8 Jul 2024 22:01:19 +0200 Subject: [PATCH] Add: sorl thumbnail package --- archivist/core/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archivist/core/settings.py b/archivist/core/settings.py index f222e7f..d02cb9a 100644 --- a/archivist/core/settings.py +++ b/archivist/core/settings.py @@ -56,6 +56,7 @@ INSTALLED_APPS = [ # Pip module libraries 'whitenoise.runserver_nostatic', 'rest_framework', + 'sorl.thumbnail', 'django_cleanup.apps.CleanupConfig', @@ -177,6 +178,7 @@ STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), ) +#STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media')