I\'ve been trying to create a Django web app using VS2017 Preview (which includes Python tools for Visual Studio), and deploy the resulting app to Azure (I\'m currently on the 3
Create a WebApp on Azure (Do not enable python in Application Settings !)
From deployment option select local git repository
:
From properties
copy the git url:
Copy virtualenv_proxy.py
file from https://github.com/Azure-Samples/python-docs-hello-world into your folder.
Create a file runtime.txt
and write python-3.4
into it.
Create a file web.3.4.config
with content :
The only settings you need to change here is the value for DJANGO_SETTINGS_MODULE
, replace myModule
with your module name. All the over settings and paths should be exactly the same if you created an Web App.
Python 3.4
and install all packages from requirements.txt
.
After that everything should work. If not, connect using ftp and look into \LogFiles\wfastcgi.log
for the error.