none
[Python][Web Apps] Deploy Django web app: only displays default app, even after deployment RRS feed

  • Question

  • I am trying to deploy a webapp to Azure. I am following the directions "Creating web apps with Django in Azure"

    First step, I created a webapp (Django) on the portal.

    Then it says to follow the directions to configure "Continuous deployment using GIT in Azure App Service". This should apparently lead to my having a local directory of Django files

    So I follow those directions, installing Git, creating a local repository, adding a webpage, enabling web app repository, deploying.

    The webportal now shows that I have deployed ('active' deployment). However, when I go to the web app url, what's showing is NOT what I deployed, but rather what I guess is the default Django app with its urls (login, logout, contacts).

    So then I create an actual Django app in my local directory (instead of the static index.html from the directions). I commit and push it to Azure. It shows as being deployed.

    The result is the same as before: the default web app is showing.

    So what I'm missing is the connection between my local repository and what's actually showing. Is there some way to pull the Azure default app into my local repository? (Once it's there, I'll be able to change it as I see fit.)



    Saturday, September 26, 2015 12:22 AM

Answers

  • This was answered on Stackoverflow http://stackoverflow.com/questions/32792236/deploy-django-app-on-azure-only-displays-default-app-even-after-deployment

    The Azure documentation is missing a step to clone the web app into the local directory. Also, the Django documentation links to another document and says to follow the directions there, but then those directions are not for Django.

    Sunday, September 27, 2015 9:14 AM

All replies

  • Hi,

     

    Thank you for reaching out to us.I am currently researching to gather more information with regards to your request. I shall revert back to you with an update at the earliest. Sincerely appreciate your patience.

     

    Regards,

    Saturday, September 26, 2015 9:08 AM
  • This was answered on Stackoverflow http://stackoverflow.com/questions/32792236/deploy-django-app-on-azure-only-displays-default-app-even-after-deployment

    The Azure documentation is missing a step to clone the web app into the local directory. Also, the Django documentation links to another document and says to follow the directions there, but then those directions are not for Django.

    Sunday, September 27, 2015 9:14 AM
  • Hello soupertrouper,

    The instructions in the document are generic continuous deployment and not specific to local directories. I am glad to know that you were able to fix this issue.

    Thanks.
    Syed Irfan Hussain

    Sunday, September 27, 2015 1:33 PM