Django Conditional Expressions / Case() and When() objects

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 43

  • @bugbytes3923
    @bugbytes3923  9 หลายเดือนก่อน +1

    ORM Playlist link: th-cam.com/video/EsBqIZmR2Uc/w-d-xo.html

  • @trosgate
    @trosgate ปีที่แล้ว +9

    I will be deceiving myself if I don't drop a comment on this. These are advanced topics littered in few books. You have simplified everything.❤

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว +1

      Awesome - thanks a lot for the nice comment!

  • @juanbetancourt5106
    @juanbetancourt5106 ปีที่แล้ว +2

    I use to use Pandas for that type of data analysis but the orm seems like a robust way to handle the same logic, thank your good Sr.

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว +4

      Thanks - Pandas is always good too, but definitely a heavier dependency in a web app!

  • @alexisrichard1812
    @alexisrichard1812 5 หลายเดือนก่อน

    Perfect. Simple, clear and well explained. Continue this way. I do not raise very often comment but as previously said by others, it is really great videos on ORM. Many thanks for your time and dedication. You should think about posting training on udemy or others sites, I will definitively support you.

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน

      Thanks a lot! Appreciate the nice comment, I'll maybe try releasing some full courses after new year I think. Thanks again!

  • @seydinaoumarsamabaly1806
    @seydinaoumarsamabaly1806 ปีที่แล้ว +1

    I knew these concepts from SQL, now in Django Orm 😀. Thank you very much Master 🙌🏾.

  • @anatoliyloboda4601
    @anatoliyloboda4601 11 หลายเดือนก่อน +1

    Thanks for good explanation! Even though it looks a little complicated, for me it is amazing.
    I will be poud if I could to write such a comprehensive code!

    • @bugbytes3923
      @bugbytes3923  11 หลายเดือนก่อน +2

      Thanks a lot! Appreciate it! And yes, it's a little complex, and not something you'd use every day as a Django dev. Useful to know, though!

  • @DecodingTruth101
    @DecodingTruth101 หลายเดือนก่อน +1

    amazing content ,great tutor

    • @bugbytes3923
      @bugbytes3923  หลายเดือนก่อน

      Thanks so much!

  • @Developer_python_
    @Developer_python_ 25 วันที่ผ่านมา +1

    Very useful lesson

    • @bugbytes3923
      @bugbytes3923  25 วันที่ผ่านมา +1

      @@Developer_python_ thank you 🙏

  • @DjangoNator
    @DjangoNator ปีที่แล้ว +1

    man u actually a hero

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว +1

      Thanks a lot, glad to hear that!

  • @uttamsharma3242
    @uttamsharma3242 8 หลายเดือนก่อน +2

    Well explanation, Thank you so much

    • @bugbytes3923
      @bugbytes3923  8 หลายเดือนก่อน +1

      Thanks a lot!

  • @oizik
    @oizik ปีที่แล้ว

    Brilliant content, thank you so much!

  • @jonathacarneiro
    @jonathacarneiro ปีที่แล้ว

    amazing content, congratulations!

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks a lot for watching and commenting, cheers!

  • @repotranstech
    @repotranstech ปีที่แล้ว +1

    Great video as always.

  • @khalilbenmeziane8836
    @khalilbenmeziane8836 ปีที่แล้ว +1

    great teacher 🌹

  • @miguelvasquez9849
    @miguelvasquez9849 ปีที่แล้ว +1

    it helps me a lot, thanks

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว +1

      Thanks, great to hear that!

  • @alexdubkov6998
    @alexdubkov6998 ปีที่แล้ว +1

    Super!

  • @hack727
    @hack727 9 หลายเดือนก่อน

    Great content, plz make a video on django signals.

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Will do! Coming up soon...

  • @frameff9073
    @frameff9073 ปีที่แล้ว

    thank you

  • @shahabgohar3350
    @shahabgohar3350 8 หลายเดือนก่อน

    Majestic

  • @imanirban
    @imanirban ปีที่แล้ว

    hello?... I'm working with a HTMX file upload form, I want to have a cancel button, on click, the post request will be cancelled, how do I cancel it?...

  • @khunjohn1054
    @khunjohn1054 ปีที่แล้ว

    THIS ... WAS ... AWESOME. I've yet to use the case and when structures so was. More advanced topics are welcome.
    Here's an idea/challenge I was mulling over the other day in regards to Django vs FastApi. Everyone wants fast, modern and async, but I won't give up on the orm or the migrations. Yes I can use SQLAlchemy and Alembic, but it doesn't have the same sleekness.
    Can you get the same speed and lightness in Django by using Daphne/Uvicorn ASGI, the async ORM functions, and async functions using Django-Nina as the serializer?
    I'm not sure if ninja has implemented pydantic 2.0 yet, but their first full release is in beta 1.

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks! And interesting idea there - I'll need to revisit django-ninja. Some of my earliest videos where I actually put more thought into the planning were on Ninja, but I'm not sure if it supports Pydantic 2.0 yet.

  • @myoji5580
    @myoji5580 ปีที่แล้ว

    I watched your videos many times. Very thanks.
    I just talked program bug. Not offensive.
    I don’t understand why delete my comment.

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Please post the bug here! TH-cam must have deleted that comment (this happens a lot!). Thanks for watching!

    • @myoji5580
      @myoji5580 ปีที่แล้ว

      This code have a bug
      If last_sale: 2023-08-03
      dates last date range: 2023-07-30 ~ 2023-08-09
      But last sale: 2023-08-03
      Right dates last date range: 2023-07-30 ~ 2023-08-03(03? 04?)
      Additionally,
      Filtering a DateTimeField with dates won’t include items on the last day, because the bounds are interpreted as “0am on the given date”. If pub_date was a DateTimeField, the above expression would be turned into this SQL:
      SELECT ... WHERE pub_date BETWEEN '2005-01-01 00:00:00' and '2005-03-31 00:00:00';
      Thanks lecture!😊
      Delete Django link. I think link problem

  • @dmitrymikhailovnicepianomu8688
    @dmitrymikhailovnicepianomu8688 ปีที่แล้ว

    Not easy to grasp!