fix: add whitenoise to enable static file serving on docker

This commit is contained in:
2026-09-14 20:14:24 +02:00
parent b10f0c65bb
commit 1d25e49966
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -49,6 +49,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
"whitenoise.middleware.WhiteNoiseMiddleware",
]
ROOT_URLCONF = 'patrickcanal_it.urls'
@@ -115,7 +116,7 @@ USE_I18N = True
USE_TZ = True
STATIC_ROOT = "wholestatic"
STATIC_ROOT = BASE_DIR / "wholestatic"
try:
from patrickcanal_it.local_settings import *