Docker - Containerize a Django App

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 55

  • @IlliaNovikov-r1b
    @IlliaNovikov-r1b 8 днів тому

    THANK YOU. YOU ARE NOW MY FAVOURITE WEB APP TEACHER. PLEASE DO NOT STOP WITH TUTORIALS. HAVE A GREATE DAY!!!

    • @ajudmeister
      @ajudmeister  День тому

      @@IlliaNovikov-r1b thanks a lot 🙏

  • @moonknight-px3is
    @moonknight-px3is 5 місяців тому +6

    best docker tutorial with django, thank you

    • @ajudmeister
      @ajudmeister  5 місяців тому

      @@moonknight-px3is thanks

  • @SmartLingua-f3s
    @SmartLingua-f3s 5 місяців тому +2

    You've got an excellent academic approach in addition to the best stack). Really looking forward to your upcoming tuts)

    • @ajudmeister
      @ajudmeister  5 місяців тому

      @@SmartLingua-f3s thanks a lot for the feedback ❤️

  • @yasithawijethunga5742
    @yasithawijethunga5742 5 місяців тому +4

    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.😍

    • @ajudmeister
      @ajudmeister  5 місяців тому +2

      Thanks so much for your feedback! Dockerizing a Postgres database comes in the next one. Stay tuned.

  • @azurnxo2134
    @azurnxo2134 4 місяці тому +1

    This was much needed. You deployed this at the right time.

  • @codernerd7076
    @codernerd7076 5 місяців тому +4

    Great idea for a series!

  • @TemmyCodingLifestyle
    @TemmyCodingLifestyle 5 місяців тому +7

    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.

    • @ajudmeister
      @ajudmeister  5 місяців тому +2

      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.

    • @TemmyCodingLifestyle
      @TemmyCodingLifestyle 5 місяців тому

      @@ajudmeister Thank you.

  • @deez_dev
    @deez_dev 5 місяців тому +2

    THX this was so helpful,
    am waiting for the celery + redis Docker setup 😇

  • @ごん-i1v
    @ごん-i1v 2 місяці тому

    Thank you, this is extremely helpful. The content is excellent, and I wish you could develop more like this.

    • @ajudmeister
      @ajudmeister  2 місяці тому

      You are welcome. I will do my best to create more content! :)

  • @moonknight-px3is
    @moonknight-px3is 5 місяців тому

    thank you for your best django starter template

  • @unaisulhadi6445
    @unaisulhadi6445 5 місяців тому

    Well explained..! Just found your channel, Keep this videos coming... 🚀

    • @ajudmeister
      @ajudmeister  5 місяців тому

      @@unaisulhadi6445 thanks

  • @shashankpatil3132
    @shashankpatil3132 Місяць тому

    Thanks Andreas! ❤

  • @Armin-q6p
    @Armin-q6p 5 місяців тому

    Excellent stuff Bro, continue your work

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 3 місяці тому

    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.

    • @ajudmeister
      @ajudmeister  3 місяці тому +1

      In part 4 I cover deployment, maybe there is something you want to know about containers on other machines.

  • @ibrahimoglu
    @ibrahimoglu 5 місяців тому +1

    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?

    • @moonknight-px3is
      @moonknight-px3is 5 місяців тому +2

      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.

    • @ibrahimoglu
      @ibrahimoglu 5 місяців тому

      @@moonknight-px3is Thanks

    • @ajudmeister
      @ajudmeister  5 місяців тому

      Awesome, thanks!

  • @krr0ppa
    @krr0ppa 5 місяців тому +1

    Thanks for being here Andreas!

  • @Abdullah_Hija
    @Abdullah_Hija Місяць тому

    thank you very much.
    very clear explaination

  • @Crunchy409
    @Crunchy409 4 місяці тому

    Great video!!

  • @Pigeon2338
    @Pigeon2338 5 місяців тому +3

    Where is my shout out 😁 i asked for it. Joking, keep up the good work.

    • @thabosiphiwemngoma1859
      @thabosiphiwemngoma1859 5 місяців тому

      Thank you for this. Just around when I needed it.

    • @ajudmeister
      @ajudmeister  5 місяців тому

      Thanks bro, a big shout out to you! (I hope I haven't missed you :S)

    • @Pigeon2338
      @Pigeon2338 5 місяців тому

      @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😁

  • @VeteranTuner
    @VeteranTuner Місяць тому

    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...

    • @ajudmeister
      @ajudmeister  Місяць тому +1

      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.

    • @VeteranTuner
      @VeteranTuner Місяць тому

      @@ajudmeister thank you very much

  • @midhunskani
    @midhunskani 4 місяці тому

    Right at the time when i wanted to dockerize a django app

  • @caglargulucan
    @caglargulucan 3 місяці тому

    its great tutorial 💯

  • @Coden69
    @Coden69 5 місяців тому +2

    make something using django+reactjs it'll be fun

  • @jdmcivicrrr
    @jdmcivicrrr 5 місяців тому

    Is Andreas a secret homelabber? Only time will tell

  • @ndroidLover
    @ndroidLover 5 місяців тому

    Hey Andreas, Can you please make two series on Django ORM and Django Restful API

    • @ajudmeister
      @ajudmeister  5 місяців тому

      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.

    • @ndroidLover
      @ndroidLover 5 місяців тому

      @@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.

  • @frameff9073
    @frameff9073 5 місяців тому

    thank you

  • @ashinrajm9209
    @ashinrajm9209 17 днів тому

    while running container is not running because of using postgre sql

    • @ajudmeister
      @ajudmeister  14 днів тому

      If your Docker container isn't running when using PostgreSQL it is most likely of misconfiguration in your Docker setup.

  • @chaynhungkhongkhet833
    @chaynhungkhongkhet833 5 місяців тому

    Hello again

  • @anngroot2264
    @anngroot2264 4 дні тому

    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
      @ajudmeister  4 дні тому

      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')

    • @anngroot2264
      @anngroot2264 3 дні тому

      @@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

    • @ajudmeister
      @ajudmeister  День тому

      @@anngroot2264 do you have the import like this: from celery import Celery?
      I am glad you enjoy it 😊