Add: sorl thumbnail package

This commit is contained in:
Aroy-Art 2024-07-08 22:01:19 +02:00
parent d22093d1d1
commit 0a0f3350bf
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -56,6 +56,7 @@ INSTALLED_APPS = [
# Pip module libraries # Pip module libraries
'whitenoise.runserver_nostatic', 'whitenoise.runserver_nostatic',
'rest_framework', 'rest_framework',
'sorl.thumbnail',
'django_cleanup.apps.CleanupConfig', 'django_cleanup.apps.CleanupConfig',
@ -177,6 +178,7 @@ STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'), os.path.join(BASE_DIR, 'static'),
) )
#STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
MEDIA_URL = '/media/' MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_ROOT = os.path.join(BASE_DIR, 'media')