From 779762c2a3685b944cd4bcbdb7b0d4dfafe25d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhn-Vitus=20Sa=C3=9F?= Date: Wed, 23 Apr 2025 10:50:39 +0200 Subject: [PATCH] WhiteNoise Configuration --- django/core/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/django/core/settings.py b/django/core/settings.py index e2c442d..74599f3 100644 --- a/django/core/settings.py +++ b/django/core/settings.py @@ -157,6 +157,11 @@ WHITENOISE_SKIP_COMPRESS_EXTENSIONS = ['css', 'js'] # Return 404 instead of 500 for missing files WHITENOISE_MISSING_FILE_ERRNO = None +# WhiteNoise media configuration - wichtig für Produktionsmodus +WHITENOISE_ROOT = MEDIA_ROOT +WHITENOISE_USE_FINDERS = False +WHITENOISE_AUTOREFRESH = True + # Default primary key field type # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field