Docker - Containerize a Django App

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 56

  • @IlliaNovikov-r1b
    @IlliaNovikov-r1b 11 дней назад

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

    • @ajudmeister
      @ajudmeister  4 дня назад

      @@IlliaNovikov-r1b thanks a lot 🙏

  • @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 ❤️

  • @moonknight-px3is
    @moonknight-px3is 5 месяцев назад +6

    best docker tutorial with django, thank you

    • @ajudmeister
      @ajudmeister  5 месяцев назад

      @@moonknight-px3is thanks

  • @azurnxo2134
    @azurnxo2134 5 месяцев назад +1

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

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

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

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

  • @ごん-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! :)

  • @krr0ppa
    @krr0ppa 5 месяцев назад +1

    Thanks for being here Andreas!

  • @unaisulhadi6445
    @unaisulhadi6445 5 месяцев назад

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

    • @ajudmeister
      @ajudmeister  5 месяцев назад

      @@unaisulhadi6445 thanks

  • @deez_dev
    @deez_dev 5 месяцев назад +2

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

  • @moonknight-px3is
    @moonknight-px3is 5 месяцев назад

    thank you for your best django starter template

  • @Armin-q6p
    @Armin-q6p 5 месяцев назад

    Excellent stuff Bro, continue your work

  • @shashankpatil3132
    @shashankpatil3132 Месяц назад

    Thanks Andreas! ❤

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

  • @Abdullah_Hija
    @Abdullah_Hija Месяц назад

    thank you very much.
    very clear explaination

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

  • @Crunchy409
    @Crunchy409 4 месяца назад

    Great video!!

  • @midhunskani
    @midhunskani 4 месяца назад

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

  • @Coden69
    @Coden69 5 месяцев назад +2

    make something using django+reactjs it'll be fun

  • @caglargulucan
    @caglargulucan 3 месяца назад

    its great tutorial 💯

  • @jdmcivicrrr
    @jdmcivicrrr 5 месяцев назад

    Is Andreas a secret homelabber? Only time will tell

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

  • @frameff9073
    @frameff9073 5 месяцев назад

    thank you

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

  • @AlokKumar-or8jz
    @AlokKumar-or8jz 8 часов назад

    Thanks a lot..

  • @ashinrajm9209
    @ashinrajm9209 20 дней назад

    while running container is not running because of using postgre sql

    • @ajudmeister
      @ajudmeister  17 дней назад

      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 6 дней назад

    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  6 дней назад

      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 5 дней назад

      @@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 ruclips.net/video/bmU9K3BttVc/видео.html
      Sorry for that.
      Must say, I realy enjoy your videos

    • @ajudmeister
      @ajudmeister  4 дня назад

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