How to Dockerize Django in 5 minutes

preview_player
Показать описание
In this video, you'll learn how to use Cookiecutter Django to Dockerize your Django in 5 minutes. Docker is a great tool that I've used in almost all of my projects. For beginners it can be difficult to get everything setup correctly so why not just learn from one of the community's most trusted sources - the Cookiecutter Django project.

📖 Read the blog post

Professional Django developer courses:

✌️ Stay in touch

Thank you for watching and don't forget to subscribe :)

00:00 Intro
01:00 Cookiecutter explanation
02:30 Downloading Docker
03:00 Installing Cookiecutter
04:00 Start project
06:30 Starting Cookiecutter project
16:45 Working in Requirements folder
18:20 Copy command
24:45 Using Docker compose
28:00 Adding postgres into requirements
29:30 Database configuration
32:00 Important runserver fix
Рекомендации по теме
Комментарии
Автор

Your explanations in this video are far better and more complete than any of the countless manuals, tutorials, and videos I have gone through to try and understand how to Dockerize Django, with or without Cookiecutter. I had given up trying to understand all of this but you have restored my sanity. Seriously excellent video!!

kevinfreeman
Автор

I’m a python/Django beginner. Going through all those yml and config files helped me understand better. Thanks for the tutorial!

swiftsword
Автор

The best explaining video on the youtube man!

marcinajman
Автор

You make everything seem easy. I love your explanation and how you broke everything down. I really learnt alot and cookiecutter is so cool! Thanks

chukwukaibejih
Автор

Great tutorial ! Really appreciate how you went line by line to get a great overview of the image build process

gabrielpeter
Автор

This way of organizing the settings looks great. I’m going to try it in my next project 👍🏽 thanks for this video 🤗

FRANKFIFORM
Автор

"in 5 minutes" - running time: 35:59 :p

BjrnOttoVasbottenbjovas
Автор

Let's build a project with this pls, even if it's just a Todo app.

Thanks for this video anyway

defidelity
Автор

LOL the video "how to do this or that in 5 min" that lasts more than 30 :)

unperrier
Автор

600th like. Thanks for the informative video!

Otaku-Paradise
Автор

@justDjango. But in production it is not best practice to dockerize the database. For example if you are using AWS or Azure then it is better to use a cloud database service. I just read that. Or am I wrong?

nielsSavantKing
Автор

docker dev containers are also a nice alternative.

backbasic
Автор

Is a very good and helpful video...

But can you please make a video on how to connect Django with MongoDB Atlas as a database

I have tried to connect it with but it connecting to the localhost only.

Please make a video on that.

juneddavada
Автор

Can you use cookiecutter django in your next project or make a video on it like how to use this project.

mr-enginer
Автор

very good
plz learn django taggit autocomplite in django admin

rezarostami
Автор

Not a good tutorial. You copied and pasted a Dockerfile and some folders, and that's it. The Dockerfile is unnecessarily complex and misleading, as it was built for cookiecutter (automation). What is more, there are a lot of bad practises in the Dockerfile (for example the container runs with root privileges.)

michaelmarinos
Автор

I hate it when swallowing sound comes up. Such a irritating sound.

roshan.maharjan
Автор

Title says "How to . . . in 5 minutes" and yet the video is 36 minutes long, am i missing something?

myusrn