Django REST Framework- Nested Serializers, SerializerMethodField and Serializer Relations

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

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

  • @seydinaoumarsamabaly1806
    @seydinaoumarsamabaly1806 4 หลายเดือนก่อน +8

    Without knowing the end of this serie of DRF I guarantee you this is the best ever. Thank for all man !

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

      Amazing man thank you for the comment!

  • @FacundoTroitero
    @FacundoTroitero 2 หลายเดือนก่อน +3

    You do a great job at explaining this horrible stuff. No one should have to learn this, but your explanations and approach make it much easier and take a lot of the pain away.

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

      Thanks a lot - really appreciate that, glad to hear the approach works! Cheers!

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

    ☕ Buy a coffee: ko-fi.com/bugbytes
    ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐
    📚 Django REST Framework API playlist: th-cam.com/play/PL-2EBeDYMIbTLulc9FSoAXhbmXpLq2l5t.html

  • @kite759
    @kite759 27 วันที่ผ่านมา

    thank you, i had stumbled across your video and i was very satisfied when you explained this logic to me. Thank you once more

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

    I do like the fact you do leave in the errors. Thanks for that.

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

      No problem, helps show the workflow better I think (with common pitfalls) - thanks for the comment!

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

    As always, well explained, continue bringing these awesome videos, really helpful, thank you.

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

    Wow, this was so straightforward! 🙌 Nested serializers finally make sense to me. Thank you for breaking it down so easily!

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

      Thanks a lot, glad to hear it helped!

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

    as always ! well explained dude . continue bringing these awesome tutorials for us . really helpful .

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

      Thanks a lot!

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

    Hi man, love your videos, they're so detailed and thorough! Keep it up!

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

      Thanks a lot Brah! Appreciate it

  • @anthonymwangi6889
    @anthonymwangi6889 14 วันที่ผ่านมา +2

    As always, you are GOAT

    • @bugbytes3923
      @bugbytes3923  14 วันที่ผ่านมา

      Thanks a lot, really appreciate it!

  • @sohailshah1574
    @sohailshah1574 4 หลายเดือนก่อน +2

    very excited about this playlist.. Sir please cover all the topics related to DRF

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

      Thanks! Will try to ;)

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

    As usual top tutorial

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

      Thanks a lot!

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

    Thank you for the video 🎉

  • @AhmedBashir-m1s
    @AhmedBashir-m1s 4 หลายเดือนก่อน +1

    Great job ❤❤❤

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

      @@AhmedBashir-m1s thanks a lot!

  • @ArtemZakharov-sv6dj
    @ArtemZakharov-sv6dj 2 หลายเดือนก่อน +1

    🔥🔥🔥 amazing!

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

      Thanks a lot man!

  • @RamyAnwar-o4z
    @RamyAnwar-o4z หลายเดือนก่อน +1

    Thank you

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

      @@RamyAnwar-o4z thanks for the view!

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

    The most interesting video i've ever watched on django. So I wanted to know, how do you model hierarchical data in the database before nesting here on the serializers.

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

      Haha thanks. I'll need to prepare some on hierarchical DB data, but there are tools such as django-treebeard that can help.

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

    Thanks

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

      Thanks for watching!

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

    It is good understanding of serializer. One hundred or two hundred records probably good for nested serializer, but when it comes to thousands of records then I think performance will hit big time. Do you have any suggestion to avoid performance hit and still use serializer. Or maybe if you got some time to make a short video and show us a little demo with pulling 10 thousands records from three different model with nested method. Keep up the good work. I like your videos. Thanks

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

      Very good idea - I'll add this to the list for the series. We will do some pagination of API content later, which would help with this.

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

    thank you!

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

      Thanks for watching!

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

    good thank

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

      Thank you for watching!

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

    Nice

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

      Thank you!

  • @manuel-jo
    @manuel-jo 4 หลายเดือนก่อน

    🔥🔥🔥

  • @ZeeshanAli-m9g
    @ZeeshanAli-m9g 3 หลายเดือนก่อน

    please also make a video on custom user model

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

      good idea, thanks!

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

    letsss goo

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

    Cool, but more interesting things start when we need to pass input nested data to create on update an entity.
    And also cool features are fields as a parameters of a serializer. If you want to be more cool than other authors you may to talk about such methods as to_representarion, to_internal_value, about context and other important things

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

      I'm planning some stuff on this - for the nested entities we'll need to have this kind of custom logic, so that'll be later in the series.

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

      @@bugbytes3923 I'm waiting) Thanks

  • @HyperLinguist-AI
    @HyperLinguist-AI หลายเดือนก่อน

    The way you go over things has nothing of pedagogic, it is basically a very aggressive rundown addressed for people who already masters all of these things. They are not meant as teaching tutorials for beginners. It is impossible to assimilate this dense matter in such a quick way. In fact you do about 140 cut-offs before you resume, so while the video lasts 28 minutes, it may have taken you 10 hours to do it.

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

      @@HyperLinguist-AI sorry, the teaching style may not be for everyone. I would recommend reading the DRF documentation and taking notes if you’re struggling with the video.

    • @HyperLinguist-AI
      @HyperLinguist-AI หลายเดือนก่อน

      yes, that is what I decided to do, in fact, in preparation before watching the videos, and I am just now reading Serializer relations, the whole section, not just nested, otherwise I will be lost, but indeed, your videos are from guru (you) to experts, not for beginners seeking to learn.