This commit is contained in:
ben8
2025-06-01 18:27:06 +02:00
parent 3bfca331f2
commit e84c13c40a
2 changed files with 1 additions and 1 deletions

View File

@@ -159,7 +159,7 @@ STATIC_ROOT = BASE_DIR / "staticfiles"
STATICFILES_DIRS = [BASE_DIR / 'static'] STATICFILES_DIRS = [BASE_DIR / 'static']
# WhiteNoise configuration # WhiteNoise configuration
STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage' STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
WHITENOISE_SKIP_COMPRESS_EXTENSIONS = ['css', 'js'] 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

View File