Post successful deploying django application using Azure web apps I can only see 500 Internal server error page only when Debug=False

varun kumar rachamalla 0 Reputation points
2023-02-24T03:57:41.7433333+00:00

I followed this documentation https://learn.microsoft.com/en-us/azure/app-service/tutorial-python-postgresql-app?tabs=django%2Cmac-linux#i-get-an-error-when-running-database-migrations to deploy my Django based web application over cloud with PostgreSql DB, everything went well and server is up and running, when I navigated to the link generated by azure page to check my website, I can only see 500 Error Page. Once the website is pushed to Azure cloud, production.py will come in to picture where Debug=False.

Main urls.py are aligned perfectly and running perfectly in local environment. Screenshot 2023-02-24 at 9.25.56 AM

The same application ran perfectly in local environment without any issue, but in production environment it's failing to load the navigated urls. I tried to debug the issue but the issue still remain same.

I followed this link https://learn.microsoft.com/en-us/answers/questions/449267/500-server-error-on-django-on-app-service-when-deb?comment=question#newest-question-comment to update and check anything, but no use.

Looking forward to hear valuable inputs to resolve my issue.

Link 1 :: https://learn.microsoft.com/en-us/azure/app-service/tutorial-python-postgresql-app?tabs=django%2Cmac-linux#i-get-an-error-when-running-database-migrations

Link 2 :: https://learn.microsoft.com/en-us/answers/questions/449267/500-server-error-on-django-on-app-service-when-deb?comment=question#newest-question-comment

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.