Deploying to Azure [23 of 24] | Django for Beginners

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • A website isn’t complete until it’s on the Internet, for other people to see. In this video, we will deploy the application onto Microsoft Azure’s free App Service tier from VS Code.
    Useful Links:
    aka.ms/CreateW...
    www.azure.com/...
    github.com/mic...

КОМЕНТАРІ • 40

  • @lakshaysingla7412
    @lakshaysingla7412 Рік тому +2

    It showed deployment successful but website is not getting loaded..

  • @nokuphilasimelane5091
    @nokuphilasimelane5091 2 роки тому

    Thank you so much. Clear tutorial, best app service tutorial

  • @baqirhussein1109
    @baqirhussein1109 2 роки тому

    Fantastic! Thanks man i was having hard times deploying django app

  • @vishnusai8634
    @vishnusai8634 2 роки тому +2

    The settings you have added aren't clear..could you reply here?

  • @akashpal7748
    @akashpal7748 Рік тому

    Thank you so much sir

  • @alexanderzuluagagarcia6095
    @alexanderzuluagagarcia6095 2 роки тому

    Excelente, muchas gracias.

  • @christophgonzalez2277
    @christophgonzalez2277 3 роки тому +2

    I am getting errors after my deployment because it is not making migrations. Has anyone had a similar issue?

    • @AnthonyShaw
      @AnthonyShaw 3 роки тому

      Hi Christoph, Azure won't run make migrations or migrate on deployment, you need to run those locally before deploying.

    • @christophgonzalez2277
      @christophgonzalez2277 2 роки тому

      @@AnthonyShaw Thank you! I followed your advice and was able to make the migrations by using the SSH command line interface. After that I activated my virtual environment and made my migrations. I have an other problem now, my app crashes every night at 7pm. It deploys successfully, and will run fine all day, but at 7pm each day I get the "Hey, Python developers!" default page. I would really appreciate any advice.

    • @shri7559
      @shri7559 6 місяців тому

      @@christophgonzalez2277 Hi how did you make the migrations?

  • @metalthower
    @metalthower Рік тому +1

    I get a successful deploy but the site only shows " :( Application Error ". It works locally. Is there anyway to troubleshoot this?

    • @metalthower
      @metalthower Рік тому

      Works fine locally but when I Deploy it using MS VS Code, I get a ModuleNotFoundError: No module named 'project' critical error

  • @myusrn
    @myusrn 2 роки тому

    After deploying to an azure app service visiting django app /admin UI and putting in credential produces a "csrf verification failed. request aborted." Anyone got the fix for this?

  • @elpucarlino
    @elpucarlino Рік тому

    como puedo subir un contenedor con Django con una base de datos postgres?

  • @sahilaggarwal5777
    @sahilaggarwal5777 Рік тому

    for saving database from over written is there any other way that database server

  • @shri7559
    @shri7559 6 місяців тому

    Is it possible to deploy using a docker container?

  • @damilolasotomi886
    @damilolasotomi886 2 роки тому +2

    I got "Server Error (500)" and i followed all the steps

    • @user-9bk
      @user-9bk 10 місяців тому

      First debug = True
      Mostly the error comes because you do not migrate

    • @majalinet
      @majalinet 7 місяців тому

      Got the error when I added the white noise settings to the setting.py file, commented them out and it worked fins

  • @metalthower
    @metalthower Рік тому

    Cannot get past the "AZURE this region has a quote of 0 instances for your subscription" Failure from VS Code when trying to "Create New WabAPP"

    • @metalthower
      @metalthower Рік тому

      My Azure for VS Code does not show a "deploy " option. Has this changed?

    • @user-9bk
      @user-9bk 10 місяців тому

      @@metalthowerright click your app and you can find deploy option

  • @christophgonzalez2277
    @christophgonzalez2277 2 роки тому

    I have an other problem, my app crashes every night at 7pm. It deploys successfully, and will run fine all day, but at 7pm each day I get the "Hey, Python developers!" default page. I would really appreciate any advice. I can even redeploy the same exact code after 7, and it'll run fine. Is there some setting I have wrong, or has anyone else experienced this issue?

  • @user-fz6de7ju4i
    @user-fz6de7ju4i Рік тому

    Hi Microsoft Developer, I have deployed the app and the build is successful however when accessing the url, application error page was shown. Could you help give me some pointers?

  • @pujanrai159
    @pujanrai159 5 місяців тому

    can we host two website on a webapp?

  • @BitCloud047
    @BitCloud047 2 роки тому +1

    Why did you add the middleware part?

    • @user-9bk
      @user-9bk 10 місяців тому

      The middleware add for Django-admin css and your statick files to work properly.
      Most of the time after deploying admin css doesn’t work.

  • @myusrn
    @myusrn 2 роки тому

    The /staticfiles story works when i deploy to azure, e.g. accessing using /static/mytestpage.html, but fails when i run the django web app locally for debugging and test. Is extra step necessary for localhost deployment verification of the whitenoise enabled static files experience?

  • @thebackendguru
    @thebackendguru Рік тому

    Am a fan of the effort placed in these videos, however I encounter an error when attempting to deploy to different region. I have tried numerous things with no solution, unless I upgrade. The error is "This region has quota of 0 instances for your subscription. Try selecting different region or SKU." Please help

    • @majalinet
      @majalinet 7 місяців тому

      I had to upgrade my subscription to pay as you go. Then it worked.

  • @user-lf1ox9kb2n
    @user-lf1ox9kb2n Рік тому

    Hey there, do you know whether Azure supports MySQL 8?

  • @omerkaraca7375
    @omerkaraca7375 Рік тому

    I didn't see any 'deploy 'icon near the AppService tag. Is there any update on the compiler?

    • @user-9bk
      @user-9bk 10 місяців тому

      Click the right click of the app name there you can find an option deploy.

  • @birgirkarl
    @birgirkarl Рік тому +1

    2:35-5:55! Not a very enjoyable deployment experience, I have to say.

  • @sssfasih
    @sssfasih 2 роки тому

    What about SECRET_KEY ? in production you don't upload the file with SECRET_KEY, instead you get it from the environment.

    • @GigaFro
      @GigaFro 2 роки тому +1

      Better yet, store your secrets in an azure key vault and make calls from settings to populate these fields via azure sdk. Storing any other keys or credentials there would also be a great idea. If the box is compromised, you bet they’ll check your environment variables… on the other hand, they can’t access your azure key vault without your azure credentials.

  • @kiemon2568
    @kiemon2568 9 місяців тому

    Why tutorial on mac? XDDD

  • @sahilbhardwaj7274
    @sahilbhardwaj7274 Рік тому +1

    Getting Error While deploying in Azure "Missing Django modile in Missing Django module in /tmp/8dab243ed45cf00/requirements.txt"
    I have Django in My Requirements

    • @user-9bk
      @user-9bk 10 місяців тому

      First uninstall requirements.txt
      2nd deactivate
      3rd delete virtualenv
      4th again create virtual environment
      5th active virtual environment
      6th pip install -r requirements.txt
      Then try to deploy. Hope it will work