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
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?
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!
@@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
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
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.
Awesome!! This is just what I was looking for. Certainly, deploying a Django app is no joke
We're happy to hear that! Let us know how if goes.
Well this was handy 😂😂🎉🎉
I'm glad it was useful to you!
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
Glad to hear you found it useful and thank you for the suggestion!
Does that terraform module detect code changes in Django app?
No. terraform has nothing to do with apps (in this case django).
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?
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!
@@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
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
there needs to be a course with terraform and GCP ... I only have came across terraform and was courses :/
Super content
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.
It's in a data migration, check out the 0001_create_superuser.py file in the repo for the details!