Тёмный

Docker With Django And Postgresql Tutorial 

Code With Stein
Подписаться 28 тыс.
Просмотров 24 тыс.
50% 1

Learn how to set up a simple Docker container using Docker Compose where you can run a Django application with Postgresql as the backend.
---
Important links
Discord: / discord
Patreon: / codewithstein
Twitter: / codewithstein
Website: codewithstein.com
---
#codewithstein #django #docker

Опубликовано:

 

5 июн 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 85   
@bushramustofa2135
@bushramustofa2135 3 года назад
Clean, Clear, and easily understandable tutorial great job Stein
@CodeWithStein
@CodeWithStein 3 года назад
Thank you so much 😁😁😁
@kevincodes674
@kevincodes674 Год назад
I was having trouble getting my application to work but this video fixed that. I was working on it for over an hour this morning before finding your video. Thank you!
@CodeWithStein
@CodeWithStein Год назад
Nice, that is great :-D Glad it could help you :-D
@CodeWithTomi
@CodeWithTomi 3 года назад
Great video! and congrats on 7k🎉
@CodeWithStein
@CodeWithStein 3 года назад
Thank you so much Tomi :-D
@dalestewart
@dalestewart 3 года назад
Another great tutorial setting up a simple Docker container using Docker Compose and also able to run a Django application with Postgresql as the backend.👍
@CodeWithStein
@CodeWithStein 3 года назад
Thank you so much Dale :-D
@sazidahmed3012
@sazidahmed3012 3 года назад
Finally, got the tutorial. Thank you so much.
@CodeWithStein
@CodeWithStein 3 года назад
Yes :-D I hope you liked it :-D
@AmoahDevLabs
@AmoahDevLabs 2 года назад
I am finally relieved. Thanks very much bro.
@CodeWithStein
@CodeWithStein 2 года назад
Nice :-D
@1roOt
@1roOt 3 года назад
the best best best best best django channel! this is so premium. thank you!
@CodeWithStein
@CodeWithStein 3 года назад
Thank you so much :-D
@JorgeAssis69
@JorgeAssis69 Год назад
Thank you very much for this video!
@CodeWithStein
@CodeWithStein Год назад
You’re welcome 😁
@user-nw6jv1nq5k
@user-nw6jv1nq5k Год назад
Thank you for the video, very clear
@CodeWithStein
@CodeWithStein Год назад
You’re welcome, glad you liked it 😁
@carlosamaral6917
@carlosamaral6917 3 года назад
Thanks a lot for this tutorial Stein! I'm back to your channel! :)
@CodeWithStein
@CodeWithStein 3 года назад
Nice :-D Welcome back :-D
@EduardoWurch
@EduardoWurch 3 года назад
Hey Stein, thank you for this great introduction! My question is about development and production, do you usually use the same compose files for both?
@CodeWithStein
@CodeWithStein 3 года назад
Hi, thank you :-D Yes, you usually use the same files, but they will be more complicated. So they can handle environments and similar ;-)
@barrowmusics
@barrowmusics Год назад
Your teaching is great
@CodeWithStein
@CodeWithStein Год назад
Thank you so much 😁
@megz_2387
@megz_2387 3 месяца назад
thanks for the video!
@CodeWithStein
@CodeWithStein 3 месяца назад
You're welcome :-D
@harrisonfok8267
@harrisonfok8267 3 года назад
It’s finally here!
@CodeWithStein
@CodeWithStein 3 года назад
Yeah :-D
@aditya.01020
@aditya.01020 3 года назад
That what I was looking for, I am noob in Docker. Thank You Mr. Stein 😋
@CodeWithStein
@CodeWithStein 3 года назад
Nice :-D
@allmy832
@allmy832 Год назад
Thank you so much
@CodeWithStein
@CodeWithStein Год назад
You’re welcome 😁
@PE4ENAROBOTV
@PE4ENAROBOTV 2 года назад
You help me so much Thank you!!!!! I read ofical docs - i hate it i saw your video - i like it! =) Have a nice day !
@CodeWithStein
@CodeWithStein 2 года назад
Nice, thank you so much for the feedback 😁
@TanjimAshraf-nr2hh
@TanjimAshraf-nr2hh 11 месяцев назад
Docker-compose was making me crazy until this video. Thanks. Liked & Subscribed also.
@CodeWithStein
@CodeWithStein 11 месяцев назад
Great 😁 Thanks 😁
@oscarlopez9119
@oscarlopez9119 2 года назад
👏 amazing! I love u 💓
@CodeWithStein
@CodeWithStein 2 года назад
Thanks :-D
@Hunt92
@Hunt92 Год назад
Amazing video, only question is what changes you have to make for production?
@CodeWithStein
@CodeWithStein Год назад
Hey, there is a few small tweaks for security I think. I never use Docker in production :P I always just stick to simple virtual environments :-)
@maxmax2746
@maxmax2746 2 года назад
Thank you for the video. But can you please show project directory? how code, db etc folders placed in relation one to another.
@CodeWithStein
@CodeWithStein 2 года назад
Hey, I will add it to my list if ideas 👍🏻
@jakubrudy9372
@jakubrudy9372 3 года назад
thanks a lot!
@CodeWithStein
@CodeWithStein 3 года назад
You're welcome :-D
@franciscomartinez2664
@franciscomartinez2664 Год назад
superb tutorial, as always. Don't you dare to change your style of showing things to us!!!!
@CodeWithStein
@CodeWithStein Год назад
Haha, thank you :-D
@jorgeramiroalarconvargas2580
@jorgeramiroalarconvargas2580 3 года назад
best ever, make one deploying a docker postgresql django to azure AWS and linode pls
@CodeWithStein
@CodeWithStein 3 года назад
Hi :-) I'm going to make one more video where I deploy this to Digital Ocean with a Ubuntu 20.04 server. This can also be used for Linode as well (And other Ubuntu server providers). I don't have any experience with Azure or Aws, so I don't think I'm able to do that :/
@stayaway4350
@stayaway4350 3 года назад
Can some one explain what is ./data/db Because I assume that there is no such file in the current directory and we are actually mapping that directory inside the container to postgres folder
@CodeWithStein
@CodeWithStein 2 года назад
Hi, that is correct yes :-)
@user-dc5im6sv9m
@user-dc5im6sv9m Год назад
Is this just for new Django Projects, or will it be the same process for existing django projects?
@CodeWithStein
@CodeWithStein 7 месяцев назад
This can be done for existing projects as well yes :-)
@yashinshekh802
@yashinshekh802 10 месяцев назад
hello stein. in your deployment i could not see any docker implementationin digitalocean . any reason for that?
@CodeWithStein
@CodeWithStein 5 месяцев назад
Hmm, not sure why. I'm working on a new video now though, i will use docker locally and on digital ocean there :-)
@MNibor
@MNibor 6 месяцев назад
I'm on a Linux PC and after doing [docker compose run web...] I run into a "data/db" folder permissions error. Do you have any idea how I can solve it?
@CodeWithStein
@CodeWithStein 6 месяцев назад
Hey, Hmm not sure… maybe use the chown command?
@salamibuilds
@salamibuilds 3 года назад
This is awesome!! Thank you for this awesome tutorial
@CodeWithStein
@CodeWithStein 3 года назад
Thank you Wale :-D
@fqt5445
@fqt5445 3 года назад
How can one run such a command [pip install django-filter] using docker-compose
@CodeWithStein
@CodeWithStein 3 года назад
Hi, you can add it to the requirements.txt file. I think that should handle it ☺️
@mirfaramarzhussaini3413
@mirfaramarzhussaini3413 2 года назад
Great
@CodeWithStein
@CodeWithStein 2 года назад
Thanks :-D
@miraccan00
@miraccan00 3 года назад
can you share with us how we can deploy our django project deploy on docker?
@CodeWithStein
@CodeWithStein 3 года назад
Hi! I'm going to make one more video with Docker where I make it a little bit more advanced. This will include gunicorn, nginx and similar, and also how to deploy it to a live server ;-)
@TanjimAshraf-nr2hh
@TanjimAshraf-nr2hh 11 месяцев назад
@@CodeWithStein Can you please share that video's link in this thread or in the video's description section, so we can find it easily?
@CodeWithStein
@CodeWithStein 11 месяцев назад
I haven’t made it yet 😛😛🤷🏼‍♂️
@stayaway4350
@stayaway4350 3 года назад
I'm really stuck in this postgres connection for an existing application
@CodeWithStein
@CodeWithStein 2 года назад
I think you can do what I did in the video, and then just run a command for importing the existing application. Or you can just change the contents of settings.py to point to your existing postgres.
@user-jm7bf8lt8q
@user-jm7bf8lt8q Год назад
good
@CodeWithStein
@CodeWithStein Год назад
Thanks 😁
@freekeys
@freekeys 3 года назад
Can you make video on multiple django website hosting on same Ec2 server🤔
@CodeWithStein
@CodeWithStein 3 года назад
Hi! I don't have any experience with Ec2, so I can't :/
@freekeys
@freekeys 3 года назад
@@CodeWithStein No problem was giving an idea of content haha, bcz there's less videos of deployment
@arsalan1377
@arsalan1377 3 года назад
ERROR: yaml.scanner.ScannerError: mapping values are not allowed here :(
@CodeWithStein
@CodeWithStein 3 года назад
Hmm, not sure where this is coming from :S Maybe a Windows error?
@vitali1959
@vitali1959 3 года назад
python manage.py runserver is only for dev and not for production :(
@CodeWithStein
@CodeWithStein 3 года назад
Yes ;-) I'm going to make a more advanced video with Docker where I include deployment, nginx, gunicorn and similar as well ;-)
@darwinsterritory
@darwinsterritory 3 года назад
First🧨
@CodeWithStein
@CodeWithStein 3 года назад
Nice 😁😁
@darwinsterritory
@darwinsterritory 3 года назад
@@CodeWithStein the idea with a mug is super👍😂
@noblesavage149
@noblesavage149 3 года назад
WAIT.... YOU'RE USING VI!!!!!
@CodeWithStein
@CodeWithStein 3 года назад
Haha, sometimes yes 😁😁
@TanjimAshraf-nr2hh
@TanjimAshraf-nr2hh 11 месяцев назад
@@CodeWithStein I didn't understand how did you open two tabs in vi to work like editors or switching between files inside of a directory? It seems magical to me.
@CodeWithStein
@CodeWithStein 11 месяцев назад
Do you use Windows or Mac?
Далее
Is Django A Good Choice For A Beginner In 2022?
4:52
Using docker in unusual ways
12:58
Просмотров 418 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 340 тыс.
How to create a great dev environment with Docker
29:55
Dockerize a Django application I Re-optimized
21:11
Просмотров 11 тыс.
Docker and PostgreSQL in [10 Minutes]
21:06
Просмотров 266 тыс.