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

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

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

  • @bugbytes3923
    @bugbytes3923  8 месяцев назад +1

    ORM Playlist link: ruclips.net/video/EsBqIZmR2Uc/видео.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!

  • @seydinaoumarsamabaly1806
    @seydinaoumarsamabaly1806 Год назад +1

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

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

    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  4 месяца назад

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

  • @anatoliyloboda4601
    @anatoliyloboda4601 10 месяцев назад +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  10 месяцев назад +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!

  • @uttamsharma3242
    @uttamsharma3242 7 месяцев назад +2

    Well explanation, Thank you so much

  • @DecodingTruth101
    @DecodingTruth101 7 дней назад +1

    amazing content ,great tutor

  • @DjangoNator
    @DjangoNator Год назад +1

    man u actually a hero

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

  • @repotranstech
    @repotranstech Год назад +1

    Great video as always.

  • @khalilbenmeziane8836
    @khalilbenmeziane8836 Год назад +1

    great teacher 🌹

  • @oizik
    @oizik Год назад

    Brilliant content, thank you so much!

  • @miguelvasquez9849
    @miguelvasquez9849 Год назад +1

    it helps me a lot, thanks

  • @jonathacarneiro
    @jonathacarneiro Год назад

    amazing content, congratulations!

    • @bugbytes3923
      @bugbytes3923  Год назад

      Thanks a lot for watching and commenting, cheers!

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

  • @hack727
    @hack727 8 месяцев назад

    Great content, plz make a video on django signals.

    • @bugbytes3923
      @bugbytes3923  8 месяцев назад

      Will do! Coming up soon...

  • @alexdubkov6998
    @alexdubkov6998 Год назад +1

    Super!

  • @frameff9073
    @frameff9073 Год назад

    thank you

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

  • @shahabgohar3350
    @shahabgohar3350 7 месяцев назад

    Majestic

  • @dmitrymikhailovnicepianomu8688

    Not easy to grasp!