Deploy Django applications to Google Cloud

Deploy Django applications to Google Cloud



Serverless Expeditions Blog →

Web frameworks that rely on databases – such as Django, Wagtail, or Django CMS – can be difficult to migrate to the Cloud. In this episode of Serverless Expeditions, we show you how to use Cloud Run, Cloud SQL, and Google Cloud Storage to deploy code and set up backing services to store relational data, as well as media assets. Watch to learn how you can easily host and scale your website by connecting stateful services to a stateless Cloud Run service!

Codelabs:


Timestamps:
0:00 – Intro
0:33 – Django overview
1:04 – Cloud Run overview
1:23 – Django and Cloud Run integration
1:57 – Cloud SQL integration
2:13 – Deploying Cloud Run service
2:41 – Storing Media and static assets with Cloud Storage
3:15 – Running Django commands with Cloud Build
3:39 – Conclusion

Learn more about the products featured in this episode:

Cloud Run →
Cloud SQL →
Cloud SQL for MySQL →
Cloud SQL for PostgreSQL →
Cloud SQL for SQL Server →
Cloud Storage →
Cloud Build →
Secret Manager →

Serverless Expeditions playlist →
Subscribe to get all the episodes as they come out →

product: Cloud Run, Cloud SQL, Cloud Storage, Cloud Build, Secret Manager; fullname: Martin Omander, Katie McLaughlin;

#ServerlessExpeditions

3 thoughts on “Deploy Django applications to Google Cloud

  1. Great video and great work on Cloud Run! It is by far my favorite serverless cloud service. I do have one question though. When using Cloud Run with Django, how would you manage connections for a SQL database? This is something I typically struggle with when modeling a serverless + managed SQL setup, since different spawned instances usually can't reuse each other's database connections and spawning too many instances with different connections may be hard for a SQL database to keep up with. I know that Cloud Run instances can serve a limited number of requests greater than 1, but at high(ish) scale I could still see database connection management being an issue.

  2. super short but clear introduction for Django on serverless… but, with a lot of homework on the description (codelabs) 😂

Leave a Reply

Your email address will not be published. Required fields are marked *