
Deploy a Django web app to production using Docker, Cloud Build, and Google Cloud Run. Containerize any Python and Django versions and run the app in Google Cloud Run.
Set up a virtual environment with Pipenv and configure a VSCode workspace for Django. Create a dev folder, open it in VSCode, and install Django with Python 3.8.
Build a production-aware home page view that uses Django settings to render an environment-based message, with separate secret keys, environment variables, debug off, and a production database.
Learn how to run Django with WSGI in production using gunicorn or Waitress, configure production settings, manage allowed hosts, and use local scripts to streamline deployment.
Install the cloud sql proxy to connect your local machine to a live cloud sql instance for postgres. Download the correct binary and create a startup script.
Create a service account in Google Cloud Platform and assign the Cloud SQL Client role. Generate a JSON key, download it, and store it locally.
Create a dockerfile to containerize Django project using Python 3.8 slim, set app home, copy code, and install dependencies. Bind gunicorn to 0.0.0.0:PORT for cloud run with entry point script.
Build and run a Django app in Docker, adjust the Dockerfile, make the entry point executable, configure ports and environment variables, and test locally before cloud run.
Learn how to build a local docker image, tag it for Google Cloud Registry, and push it to GCR, then verify the container appears in your registry.
Make changes in production, build, and deploy new revisions on Cloud Run, adding environment variables like secret key and database credentials while testing with the new revision.
Run production migrations on cloud run via a local proxy, create a production database and user, then deploy with environment variables and the instance connection name for cloud database access.
Deploy a production-ready Serverless Django Application by using a Docker Container, Google Cloud Build, Google Cloud SQL, & Google Cloud Run.
Serverless allows us to focus on our code and deploy more. What's better, our serverless applications only cost us money when they're used.
Traditionally, serverless was reserved for non-containerized applications. Google Cloud Run and the open-source equivalent Knative unlocks serverless for containers. Google Cloud Run is a managed version of Knative. Knative is a package for Kubernetes. In other words, you get the benefits of Kubernetes and Knative when you use Google Cloud Run.
Docker Containers make it easy to create our own isolated environment on the operating system level. This is exactly what we need in so many applications. Docker containers have pioneered a new way of deployment options because we now have complete control over the system-level runtime.
Learn to build and deploy a serverless Django application on Google Cloud Platform's Cloud Run service.
Serverless apps using containers is seriously amazing. Let's see why.
We'll cover:
Minimal Dockerfile for Containerizing Django
Cloud Build
Cloud SQL with Postgres
Cloud SQL Proxy for Local Dev Access
Cloud Run
*This course requires you to download open source software (such as Python, Django, Docker). If you are a Udemy Business user, please check with your employer before downloading software.