This is the best Dockerize video so far which i watched. Thank You very much. Can you please do a video about Dockerizing database as a container and connect to the app container.😍
Thank you. Could you do a series? Could you add celery, redis, celery beat, elastic search, and Postgres to the docker? Also, it would be appreciated if it were deployed. Thank you so much.
Yes, this is a new series, and I am planning to add a network of services using docker, including Postgres, redis, beat and celery (maybe elastic search, need to look into that one still), as well as deploying it.
What is the disadvantage of using COPY . . once at the beginning instead of 9:26 COPY requirements.txt. and 10:26 COPY . . ? Why copy twice if we can copy everything together once?
In this Dockerfile, copying the requirements.txt and installing dependencies happens before copying the rest of the code. This ensures that if only the application code changes, Docker can reuse the cached layer for the dependencies, making the build process faster and more efficient.
@thabosiphiwemngoma1859 your welcome. The reason is suddenly i had to manage and develop a production django project so i got pretty good at knowing what popular tools have very little tutorials on yt regarding django😁
Hello, thanks for this tutorial. I have a question: why are you still using venv in your project file? Isn't this unnecessary in the Docker container? It may be that I haven't understood something fundamental yet...
You are right, i use venv only to install the django starter code and to run it without docker at the start. If you run the application straight from inside a docker container you don't need venv.
Hey, Django ORM is part of every Django app using models. What exactly do you have in mind for a series? Regarding Restful API, I will make a series on APIs and will cover Restful there aswell.
@@ajudmeister Thanks Andreas for planning Restful API series eagerly waiting for it. Regarding Django ORM can you make series of video on how to write ORM using SQLAlchemy.
Hi, I seem to be doing something wrong. in the log from container "my-app-container" I get File "/app/celery/celery.py", line 6, in celery_app = celery('a_core') ^^^^^^^^^^^^^^^^ TypeError: 'module' object is not callable any idea what I am missing?
@@ajudmeister Thanks for the hint! I did change the capita, as I originally got: File "/app/celery/celery.py", line 6, in celery_app = Celery('a_core') ^^^^^^ NameError: name 'Celery' is not defined. Did you mean: 'celery'? After changing it back, I get the same error. I'll check all other files, must have made a mistake somewhere. Just noticed I posted this at the wrong video :-) should have been ua-cam.com/video/bmU9K3BttVc/v-deo.html Sorry for that. Must say, I realy enjoy your videos
THANK YOU. YOU ARE NOW MY FAVOURITE WEB APP TEACHER. PLEASE DO NOT STOP WITH TUTORIALS. HAVE A GREATE DAY!!!
@@IlliaNovikov-r1b thanks a lot 🙏
best docker tutorial with django, thank you
@@moonknight-px3is thanks
You've got an excellent academic approach in addition to the best stack). Really looking forward to your upcoming tuts)
@@SmartLingua-f3s thanks a lot for the feedback ❤️
This is the best Dockerize video so far which i watched. Thank You very much. Can you please do a video about Dockerizing database as a container and connect to the app container.😍
Thanks so much for your feedback! Dockerizing a Postgres database comes in the next one. Stay tuned.
This was much needed. You deployed this at the right time.
Great idea for a series!
Thank you. Could you do a series? Could you add celery, redis, celery beat, elastic search, and Postgres to the docker? Also, it would be appreciated if it were deployed. Thank you so much.
Yes, this is a new series, and I am planning to add a network of services using docker, including Postgres, redis, beat and celery (maybe elastic search, need to look into that one still), as well as deploying it.
@@ajudmeister Thank you.
THX this was so helpful,
am waiting for the celery + redis Docker setup 😇
Thank you, this is extremely helpful. The content is excellent, and I wish you could develop more like this.
You are welcome. I will do my best to create more content! :)
thank you for your best django starter template
Well explained..! Just found your channel, Keep this videos coming... 🚀
@@unaisulhadi6445 thanks
Thanks Andreas! ❤
Excellent stuff Bro, continue your work
This channel is a gold. Finally I know how to use the Docker, but I don't know how to use a container on another PC though.
In part 4 I cover deployment, maybe there is something you want to know about containers on other machines.
What is the disadvantage of using COPY . . once at the beginning instead of 9:26 COPY requirements.txt. and 10:26 COPY . . ?
Why copy twice if we can copy everything together once?
In this Dockerfile, copying the requirements.txt and installing dependencies happens before copying the rest of the code. This ensures that if only the application code changes, Docker can reuse the cached layer for the dependencies, making the build process faster and more efficient.
@@moonknight-px3is Thanks
Awesome, thanks!
Thanks for being here Andreas!
@@krr0ppa cheers 😊
thank you very much.
very clear explaination
Great video!!
Where is my shout out 😁 i asked for it. Joking, keep up the good work.
Thank you for this. Just around when I needed it.
Thanks bro, a big shout out to you! (I hope I haven't missed you :S)
@thabosiphiwemngoma1859 your welcome. The reason is suddenly i had to manage and develop a production django project so i got pretty good at knowing what popular tools have very little tutorials on yt regarding django😁
Hello,
thanks for this tutorial.
I have a question:
why are you still using venv in your project file?
Isn't this unnecessary in the Docker container?
It may be that I haven't understood something fundamental yet...
You are right, i use venv only to install the django starter code and to run it without docker at the start. If you run the application straight from inside a docker container you don't need venv.
@@ajudmeister thank you very much
Right at the time when i wanted to dockerize a django app
its great tutorial 💯
make something using django+reactjs it'll be fun
Is Andreas a secret homelabber? Only time will tell
Lol, I wish
Hey Andreas, Can you please make two series on Django ORM and Django Restful API
Hey, Django ORM is part of every Django app using models. What exactly do you have in mind for a series? Regarding Restful API, I will make a series on APIs and will cover Restful there aswell.
@@ajudmeister Thanks Andreas for planning Restful API series eagerly waiting for it. Regarding Django ORM can you make series of video on how to write ORM using SQLAlchemy.
thank you
while running container is not running because of using postgre sql
If your Docker container isn't running when using PostgreSQL it is most likely of misconfiguration in your Docker setup.
Hello again
Hi, I seem to be doing something wrong.
in the log from container "my-app-container" I get
File "/app/celery/celery.py", line 6, in
celery_app = celery('a_core')
^^^^^^^^^^^^^^^^
TypeError: 'module' object is not callable
any idea what I am missing?
could it be because you import the Celery module, but you are trying to call it with lower capital c?
try:
celery_app = Celery('a_core')
@@ajudmeister Thanks for the hint! I did change the capita, as I originally got:
File "/app/celery/celery.py", line 6, in
celery_app = Celery('a_core')
^^^^^^
NameError: name 'Celery' is not defined. Did you mean: 'celery'?
After changing it back, I get the same error.
I'll check all other files, must have made a mistake somewhere.
Just noticed I posted this at the wrong video :-) should have been ua-cam.com/video/bmU9K3BttVc/v-deo.html
Sorry for that.
Must say, I realy enjoy your videos
@@anngroot2264 do you have the import like this: from celery import Celery?
I am glad you enjoy it 😊