Deploy a simple VS2017 Django app to Azure - server error

前端 未结 3 758
再見小時候
再見小時候 2021-01-27 03:53

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

3条回答
  •  旧巷少年郎
    2021-01-27 04:09

    I had the same problem. I solved it as follows:

    Create a Django Web App via the azure portal:

    1. Go to azure and hit the "plus sign" in the left upper corner for adding a resource
    2. Kick on “Web and Mobile”
    3. Click on “Show all”
    4. Type “Django” into the search field
    5. Select the one that is marked in the picture below and create the resource by following the instructions

    Deploy on the newly created resource

    1. Go to Visual Studio and start the deployment
    2. Instead of creating a new azure resource out of VS select the one you just created for the deployment.

    Wait a moment.

    1. It takes about 3 minutes until you can see you deployment. Before that you will get a default screen that looks a bit different than the one you already know.
    2. After that you should see the correct django page.

提交回复
热议问题