diff --git a/django/core/settings.py b/django/core/settings.py index d9525dd..162b0f8 100644 --- a/django/core/settings.py +++ b/django/core/settings.py @@ -142,8 +142,11 @@ STATIC_URL = '/static/' STATIC_ROOT = BASE_DIR / "staticfiles" STATICFILES_DIRS = [BASE_DIR / 'static'] -# Exclude development CSS files from collectstatic -STATICFILES_IGNORE_PATTERNS = ['t-input.css'] +# WhiteNoise configuration +STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage' +WHITENOISE_SKIP_COMPRESS_EXTENSIONS = ['css', 'js'] +# Return 404 instead of 500 for missing files +WHITENOISE_MISSING_FILE_ERRNO = None # Default primary key field type # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field