For whitenoise version 4.0 or higher: - Removed the WSGI integration option for Django (which included editing wsgi.py). Instead, you should add WhiteNoise to your middleware list in settings.py and remove any WhiteNoise link from wsgi.py.
MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', # ... ]
- The alias
'whitenoise.django.GzipManifestStaticFilesStorage' now deleted. Instead, you should use the correct import path: 'whitenoise.storage.CompressedManifestStaticFilesStorage' .
source share