I\'ve made a simple app with Django in Visual Studio 2017, utilizing the default template in Visual Studio (file - new - project - python - django web application). The app runs
In consideration of using Visual Studio to create & deploy a Django App for Azure, I suggest that you can follow the Azure offical tutorial Django and MySQL on Azure with Python Tools 2.2 for Visual Studio to inspect & make sure your steps correctly.
There are some checkpoints as below.
requirements.txt
file of your project, and make sure there is a record for Django like Django==1.11.2
.web.config
file via access the Kudu tool https://<your app name>.scm.azurewebsites.net
and other troubleshooting content, and refer to the document to check the application settings on Azure portal.Hope it helps. Any concern, please feel free to let me know.
After much struggle i manage to to do it!
I will explain how i did it (i've used many tutorials and forum posts answers to achieve this):
1) I've created a Django (PTVS) Web App in Azure;
2) Followed this tutorial to configure that app;
3) Make the necessary adjustments to web.config file in my project, notably the path to the python version installed via extension;
4) Published my project via Visual Studio 2017 to that Django App created in the first step.
And it worked!