When I set Debug=False in my django app deployed to Azure App Service I get a 500 Server Error whenever I try to navigate to any of API pages or the admin panel. The application still works fine, I have a React front end that is still connected to the API however I cannot access API pages directly. Looking at SE I found that this was a common problem for Heroku users but not for Azure and I made some adjustments to my code that unfortunately didn't really help. I have two questions:
Has anyone run into this issue before on Azure?
One of the solutions that was recommended for Heroku users was to comment out the following line in production.py
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
I am a bit hesitant to do this since I don't want to mess up the build sequence, but has anyone tried this method and gotten it to work without ruining their deployment?