Django Heroku not serving static files when Debug=False

前端 未结 2 1069
别那么骄傲
别那么骄傲 2021-01-07 02:41

I\'m hosting my Django application on Heroku and using whitenoise to handle serving static files.

Following is con

2条回答
  •  旧巷少年郎
    2021-01-07 03:44

    The Whitenoise middleware should come after the security middleware and before all other middleware. You are currently adding it to the end.

提交回复
热议问题