Build and run Django in Docker in 10 minutes (+ bonus tips)

preview_player
Показать описание
Build and run Django using Docker in just 10-15 minutes.

Here you will learn about:
- installing Python and Docker
- setting up a Django project
- production settings in Django
- best security practices
- Docker build and run commands

Рекомендации по теме
Комментарии
Автор

This is awesome! Thank you so much.
I especially liked the way you handled the settings for PROD and DEV environments 🙂

miroslavzeljkovic
Автор

Thanks, you covered more things in 15 minutes than others in 2 hours

tekmanoid
Автор

Excellent! Thank you so much, I was able to figure out exactly what the root cause of all my problems was by following your tutorial.

zorabtl
Автор

hi! Is a good choice to integrate posgres inside the docker image with docker compose? how can I link a reactJS front end?

PhilDodici
Автор

Hi Adam, what happens if you want to keep local on default db.sqlite3, and does it mean when you're testing local, your run is docker run -p 8000:8080 nova-docker, which will default to local settings

SnackKingOfficial
Автор

Thank you so much! You are the best! The only thing that was confusing was that I needed to install Docker Desktop in order for the docker commands to work (installing the docker cli was not enough)

viktorlavrinovic
Автор

Hi Adam,
Thank you for this tutorial.
I find something cofusing (I think it's only for me.): why do we need python&django instaled on local if we intend to run them from docker?
Can we run this instalation process without installing them on local ?
Any hints how ?
Thank you.

tudor.abrudan
Автор

Thank you. This is just what I needed to get my ball rolling. I'm finally starting to build that web app I've been thinking about for a few years, but with so much new stuff to learn all at once, I was confused about how to get everything setup in the first place. I have lots of experience building Python and Bash command line apps using vim on Linux, but I'm new to Docker, Django (web dev in general really), and even using an IDE. I also appreciated the suggestions on best practices. Useful stuff.

You implied during this tutorial that there'd be at least a part 2 to this where some of those placeholders get filled in. I've scanned through the rest of your videos but I don't see an obvious "next" video to follow this one up. ETA on part 2? Or suggestions about where to go from here?

nuynobi
Автор

Still in Kelowna or Revelstoke? Cause I’m coming to BC!!

O-DogKubrick
Автор

oh couple of things that stood out: you installed django gloablly for your python3.12 then created the my-env file and addded django as a dependency. thats not right, first create your venv folder, activate it, then install django, create project, etc. Allowed hosts are not what you said it means.

BehruzbekOtayev
Автор

i came here to findout why my admin/ is messed up and static files are not working and i saw yours are same :)

JustPro
Автор

Hi adam thanks for sharing this tutorial, This is the first time when i liked youtube suggestion algorithm they suggests your video and its amazing please can you make a series on how we can deploy multiple django apps on the same server with docker and each app can use their own domain name?

everyone makes videos about django but no one cover the deployment steps like you do keep going

you get another like + subscribe

alexdin
Автор

"In plain English", I see what you did there

enriquebruzual