WhiteNoise Configuration
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user