, whitenoice settings.py MIDDLEWARE. settings.py WhiteNoise MIDDLEWARE_CLASSES, , Djangos SecurityMiddleware:
MIDDLEWARE_CLASSES = [
'whitenoise.middleware.WhiteNoiseMiddleware',
]
, DEBUG = True, DEBUG = False, . , Heroku , DEBUG = True, .
More details can be found in the whitenoise docs: http://whitenoise.evans.io/en/stable/django.html
Go through the step-by-step setup to see what you are missing. Heroku docs tend to skip the middleware add-on that is causing the error, and maybe there is something else missing for your application.
source
share