WhiteNoise Configuration

This commit is contained in:
Juhn-Vitus Saß
2025-04-23 10:50:39 +02:00
parent da78060415
commit 779762c2a3

View File

@@ -157,6 +157,11 @@ WHITENOISE_SKIP_COMPRESS_EXTENSIONS = ['css', 'js']
# Return 404 instead of 500 for missing files # Return 404 instead of 500 for missing files
WHITENOISE_MISSING_FILE_ERRNO = None 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 # Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field