Django REST Framework Tutorial | Authentication And Permissions

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

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

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

    hello i'm 3 years from the future but this is stil helpful. thank you

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

    Mad Respect Sir Benjamin👍!

  • @Will29295
    @Will29295 3 ปีที่แล้ว

    Thank you for making these videos. Whenever you add a line please explain what is purpose is. What is permissions.IsAuthenticatedOrReadOnly etc etc etc.

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

    Thank you, this video of Django REST Framework Authentication is very excellent.

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

    Thanks, this really helped me.

  • @alexbrun6863
    @alexbrun6863 2 ปีที่แล้ว

    great tutorial, thanks !

  • @ronitjangam8927
    @ronitjangam8927 3 ปีที่แล้ว

    What I wanted❤️

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

    Why are you setting permissions in both the Serializer and the ViewSet? Seems to be a duplication of logic.

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

    I don't get this last line
    Return obj.owner == request.user
    Will u plz explain?

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

      if obj.owner is equal to request.user it will return True, otherwise False.

    • @BenjaminCarlson
      @BenjaminCarlson  3 ปีที่แล้ว

      That is correct. We only want to return the results belonging to the owner!