Deploying Django to Google App Engine using Docker

preview_player
Показать описание
Learn how to deploy a basic Django app to Google App Engine using Docker and Docker Compose.

Resources

CHECK OUT OUR COURSES

00:00 - Introduction
00:49 - Create a new directory on our system
01:54 - Add a .gitignore file
02:42 - Add a requirements file for installing Django
03:56 - Creating our Dockerfile
04:32 - Defining the base image
06:19 - Add run command to Dockerfile
14:32 - Test our development server
15:27 - Creating an app inside our project
17:38 - Add our new app to installed apps
18:00 - Configure the static files for our project
18:55 - Collect static command
21:01 - Creating a template page that we can use to deploy
23:21 - Create an HTML template
26:16 - Create a view
27:11 - Connecting to URL to test
28:51 - Setup our project to toggle debug mode
32:36 - Add environments block to file
33:30 - Sign up to Google Cloud platform
37:10 - Configure our project to deploy to App Engine
38:54 - Create a new configuration for the deployment process
43:49 - Define our app engine deployment
47:42 - Add .gcloudignore file
49:15 - Authenticate with Google Cloud in the SDK
52:44 - Deploying to Google App Engine
Рекомендации по теме
Комментарии
Автор

I do like Mark's tutorials and his teaching style .Honestly he is among few who keep tutorials simple and more straight to the point .No wasting time no learning futile things. Just what tutorials are meant for .Furthermore he takes time and pain to clearly explain why he does this and why he does not that .A great style of teaching!!! :-)

modibosanogo
Автор

Very informative and helpful. Best of all, it actually works. A lot of recent tutorials I've tried have come from like 2018 and something is always broken about them by this point. I guess it helps that your tutorial came out last year and apparently no major changes have come along to break that.... yet.

But very good video, easy to follow, and really great in spelling out the individual elements that go into this.

jonknight
Автор

Thanks for the video! You are the best! As a topic for the following videos, I vote for integrating the database into a Django project deployed with GAE.

vostbur
Автор

I love the way how you walked through each and every line word by word of yaml and commands and yet, squeezed a full project from scratch to deployment within 1 hr. that's incredibly insane.

calebjebadurai
Автор

Great tutorial Mark. You make look things so simple! Thank you for sharing this knowledge!.

tatemo_labs
Автор

Many thanks
As for databases with google cloud it would be great to see such a tutorial

mimocrocodile
Автор

Thank you very much for this great tutorial Mark. Please make another video for deploying a Django app with Pstgresql db on google app engine.

muratyigit
Автор

Thank you so much for this. Absolutely superb! Would love to see a follow up where linked to a DB service! Thanks again!

craigphollingsworth
Автор

Amazing video mate, I'm starting with GAE now and I'm struggling, this video helped a lot... I suggest how to integrate the database with the django project and deploy it to the cloud. 👏🏻👏🏻
Thanks for the video

lmarques
Автор

The best of the best. Sir Mark, Thank you for the great content.

ashrayshiva
Автор

Thanks for the helpful tutorial. Facing problem while running the
command: docker-compose -f docker-compose-deploy.yml run --rm gcloud sh -c "gcloud auth login".
exec /bin/sh: exec format error
ERROR: 1


any idea how to solve it. I tried to solve it by changing the gcloud image to latest, but still facing the same issue. Also added #!/bin/sh in every .yml file and ENTRYPOINT ["/bin/sh"] in Dockerfile but no use.

govindamukherjee
Автор

I've been waiting for this for long!

saitaro
Автор

Thanks for a great tutorial, I have some questions
can you explain about how to do this using posgresql and should one use nginx in this setup and lastly how to make the url match the domain of the site thank in advance

aliras
Автор

Hi, Mark! Greetings from California : ) this tutorial was insanely useful and I was wondering if, in the future, you could upload a video taking it a step further, using cloud storage to upload, process and store files? Cheers, man!

ociehenderson
Автор

I do would like a Docker's dependencies tutorial on choosing deps for things like PostgreSQL, pillow, etc.., and docker scan Out-of-bounds Read vulnerabilities for securing the images.

ashrayshiva
Автор

Very informative, but after typing the auth login command, it takes me to a page which reads "Access Block Authorization Error"

awanishmishra
Автор

This was really good.
I have a question, in the Dockerfile you wrote COPY ./app /app and then in the docker-compose you mapped the same directory as a volume. I think the copy was unnecessary. Could you explain a little bit on that?

ch.ajaysingh
Автор

Great video, Mark, thank you very much for sharing your experience. I have one question: is there an advantage of developing in a docker file on your local machine vs. developing in the App Engine, specifically if you think of scaling? And, it would be great if you could cover deploying a Django application with a database (e.g. PostgreSQL) in one of your next videos.

rudigerheicappell
Автор

having alot of problems on windows. please can you do a windows tuts

realdevdiv
Автор

Great Video, however if I have more services(like celery) in my docker-compose, yml would that work in App engine?

leonardos