How to set up Django on Cloud Run with Terraform

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 16

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

    Awesome!! This is just what I was looking for. Certainly, deploying a Django app is no joke

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

      We're happy to hear that! Let us know how if goes.

  • @CaseyFahey
    @CaseyFahey Місяць тому +1

    Well this was handy 😂😂🎉🎉

    • @TheMomander
      @TheMomander Місяць тому

      I'm glad it was useful to you!

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

    It always took so much time when I wanted to deploy my django app on cloud run but with the Terraform flow explained in the videos, django apps will be deployed and running live in no time. Please in future also make a video for CI/CD integration along with this

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

      Glad to hear you found it useful and thank you for the suggestion!

  • @mykolamorozov2099
    @mykolamorozov2099 2 роки тому +5

    Does that terraform module detect code changes in Django app?

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

      No. terraform has nothing to do with apps (in this case django).

  • @brian-greig-tech
    @brian-greig-tech 2 роки тому +2

    This is a great video, but you mentioned that this supports continuous deployment but according to all the instructions you’ve provide it doesn’t.
    If perform all the steps you’ve highlighted and the try update the Index.html file and run the last command you recommended you will not see the changes reflected in the deployments.
    Can you explain what steps you missed for continuous deployment?

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

      If you run the cloudbuild full manifest in the repo, you'll get all your code updates. If you run terraform apply, you'll get all your infra updates. Hope this helps!

    • @brian-greig-tech
      @brian-greig-tech 2 роки тому

      @@katiemclaughlin5167 - thanks for your reply. If you attempt the same solution with just a simple upgrade to Django==4.1.1, you'll find that your proposal does not work. The build step will fail to connect to the cloud sql instance and it does not collect the static files. Please may I request Google to upgrade the docs and tutuorial

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

    Great video.. But complex code and functionality for a beginner like me.. It would be better if things are summarized at the end for better understanding for beginner coders like me

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

    there needs to be a course with terraform and GCP ... I only have came across terraform and was courses :/

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

    Super content

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

      Good question! In the 0001_createsuperuser.py file you'll find a call to `User.objects.create_superuser()`, which uses the hardcoded value "admin" for the username. Martin and I were only treating its password as sensitive - but you could change this for your apps to also conceal the superuser's username.

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

      It's in a data migration, check out the 0001_create_superuser.py file in the repo for the details!