Getting Started with Django REST Framework | FREE Full Course | SCALER

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

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

  • @ChowdhuryMaksud
    @ChowdhuryMaksud Год назад +14

    thank you for the tutorial but 41:10 every time you are doing a PUT or PATCH a new instance is being created instead of replacing the old one. You can see that from the json reply postman gets, the id is incremented in every new reply. This simple change of code will fix this issue, inside the if and elif condition put these lines accordingly,
    refObj=peopleModel.objects.get(id=id_taken_fromURL_or_requestData)
    seralizer=PeopleSerializer(instance=refObj , data=request.data)
    Thank you alot for this great effort

    • @cosmicoo7
      @cosmicoo7 Год назад +2

      galat padha rahe hai ye log

    • @AyushSingh-fw6uq
      @AyushSingh-fw6uq 4 месяца назад +3

      its not in patch only in put,because he forgot to write the code which he has written in patch ie.
      obj=Person.objects.get(id=data['id'])
      serializer(obj,data=data)

  • @prankishoriitkgp3772
    @prankishoriitkgp3772 6 месяцев назад +2

    as a beginner, took more than 20 hrs to finish the course
    but content was concise and great, hats off to Abhijeet

    • @MihirSanjayYadav
      @MihirSanjayYadav 6 месяцев назад +1

      these kinda tutorials are what put someone in TUTORIAL HELL

    • @user-maymay2002
      @user-maymay2002 3 месяца назад +1

      @@MihirSanjayYadav exactly, this guy didn't cover any point in detail

  • @mukeshmahadev7419
    @mukeshmahadev7419 2 года назад +12

    Content is awesome. Covering the content in such a short time is very useful especially before the interviews. Thank you Abhijeet and Scaler for this video.

    • @SCALER
      @SCALER  2 года назад

      Thanks! Glad this was helpful! 😃

  • @AshisRaj
    @AshisRaj Год назад +7

    Concise and crisp. Excellent explanation

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

    thanks bro for revieving my career .Respect From NEPAL .

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

    Indian educators have a long way to go. Vast quality difference from the likes of Mosh or Dennis Ivy

    • @tnpscbits8483
      @tnpscbits8483 2 месяца назад

      Mosh and others failed in terms of python or anything related to python framework they are good at front end but backend its us 🎉

  • @sakshijain2095
    @sakshijain2095 6 месяцев назад +1

    The practise is good but please also just explain the what the methods do when we are using them ☺️

  • @harishnarayana1406
    @harishnarayana1406 День назад

    Great Lecture..!!❤, Can you please share the Code too (GIT)

  • @UmarFarooq-k5n
    @UmarFarooq-k5n 10 месяцев назад +1

    Awesome course I've ever found............ 🥰💘

    • @SCALER
      @SCALER  10 месяцев назад

      Happy to hear that! 🙌🏼

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

    Your are doing GET and POST before migrating the model. Anyway good content

  • @PriyanshuKumar-io4cs
    @PriyanshuKumar-io4cs Год назад +3

    45:57 please explain the changes in put method using serializers. You directly copy pasted the same code of post request @scaler. Thank you.

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

    At 42:13 , don't you think the code written for PUT operation is similar to what it has been written for POST operation and hence will create a new entry instead of updating the existing entry. We should be serializer.update() method instead

  • @raj7ashu
    @raj7ashu 4 месяца назад +2

    It is a wonderful course for getting information about DRF. I have one query. When I am using MoelViewSet , GET and POST is working fine but in case of PUT, PATCH and DELETE it gives me error: Method not allowed. What is the reason behind this ?

    • @MANISH12665
      @MANISH12665 2 месяца назад

      you were not adding those method in @api_view()

  • @ganeshanna3
    @ganeshanna3 Год назад +3

    Great video sir. great effort, keep it up. One of the best DRF tutorials, Thanks!

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

      Thanks! Glad this was helpful! 😃

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

    Wow, great video. Was looking for this for some time, thanks!!

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

      Happy to hear that! 🙌🏼

  • @shakthinaarayananr7639
    @shakthinaarayananr7639 2 года назад +11

    55:12 -- nicely he skipped explaining create in nested serializer. Not good :(

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

    Thanks man! 🎉😊With this course, I'm gonna b a pro in no time! 🤩

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

    very help full for bigginerss

  • @byte_it945
    @byte_it945 6 месяцев назад

    best tutorial i've seen yet

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

    Is this django rest api for developer designing web application ? Not for testers ah

  • @sahilr9195
    @sahilr9195 2 месяца назад

    Excellent explanation

  • @SushantNair-nz4gh
    @SushantNair-nz4gh 5 месяцев назад

    Good video, but the learner needs to be alert as there are some gaps which if not accounted for can lead to errors.

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

    It was good. You left Testing, Unit tests

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

    Django restful api and Django rest frame work both are same Ah bro ?

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

    Really content is good. One kind request is, please upload 1080px video

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

      Hi Gokul, we have duly made a note of your suggestion and it will be passed on to our relevant teams. Thank you! 😊

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

    Thanks a lot from Bangladesh 🧡

  • @musaibaltaf2678
    @musaibaltaf2678 2 года назад +1

    This was just awesome. Kudos!

    • @SCALER
      @SCALER  2 года назад

      Happy to hear that! 🙌🏼

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

    I appreciate you a thousand times for this tutorial, you have saved me a lot of stress and given me a super head start. I am subscribed to your channel

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

      Thanks! Glad this was helpful! 😃

  • @prashantjaiswal4610
    @prashantjaiswal4610 2 года назад +5

    .create() method does not support writable nested fields by default. Can anyone tell about this

    • @Pramodsharma-uz8ix
      @Pramodsharma-uz8ix 2 года назад +1

      Yes, This person is out of context.. 😂. He skiped and making us fool.

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

      @@Pramodsharma-uz8ix So is this scaler overated.

    • @wellness1888
      @wellness1888 7 дней назад

      yes same error .. even at model

  • @Abhayvr-h2j
    @Abhayvr-h2j Месяц назад

    hi, iam facing a problem that i could only see the first interface saying the install worked successfully in django , i checkedd so many time the url and everything is same in api core and when i run the server i get the sam welcome django interface. i tried different channels and all the result is same . i didnt know what is the problem and how to solve it even passing different urls it takes only the admin url others are not shown . what is the solution for this can anyone please help me.

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

    Can you also do advanced backend course with django please

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

      Hi, we have duly made a note of your suggestion and it will be passed on to our relevant teams. Thank you! 😊

  • @Luckey-y4x
    @Luckey-y4x 4 месяца назад

    great explanation

  • @guhanathanprathish9704
    @guhanathanprathish9704 9 месяцев назад

    Thanks a lot buddy🤝👊

  • @yashchaudhari-g7t
    @yashchaudhari-g7t Год назад

    Thanks Abhijeet I am following you from long time .....
    I am a student in Scaler but bhai inkey piche mat lagna SCALAER==SCAM ,
    They dont have any placement

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

      Hi Yash, this is not what we stand for & we’d like to highlight this internally. We appreciate you taking the time to bring this forward & our apologies once again for the experience you’ve had to endure. Please write to us at support@scaler.com along with your relevant details or share your contact details and e-mail ID with us via Twitter/Facebook/Instagram DM, so that we can connect with you.

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

      🤣

  • @arreankit
    @arreankit 2 года назад

    Thanks, Abhijeet. 👏

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

    Awesome and very useful

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

      Happy to hear that! 🙌🏼

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

    Thanks

  • @VishnuPK-qw4mw
    @VishnuPK-qw4mw 7 месяцев назад

    Wonderful

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

    Where did the old code for views go at 30:59 ???

  • @BVec-zm1ye
    @BVec-zm1ye 7 месяцев назад

    I got an error in apiview class post method. Can anyone explain this
    Error: non field error

  • @OMPRAKASH-ul2cc
    @OMPRAKASH-ul2cc Год назад

    Amazing bro.

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

    Thank you a lot!

  • @MohammedAshik-ts1kd
    @MohammedAshik-ts1kd 4 месяца назад

    abhijeet bro nicely escaped from nested serializer 🤣🤣🤣🤣

  • @kidszone5522
    @kidszone5522 10 месяцев назад +2

    Source code

  • @Allin-dd8gj
    @Allin-dd8gj Год назад

    Thanks ❤

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

    can i get github link of the code

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

    LEGEND

  • @prashantjaiswal4610
    @prashantjaiswal4610 2 года назад

    Todo project?

    • @shakthinaarayananr7639
      @shakthinaarayananr7639 2 года назад

      Not Todo bro it is crud operation n DRF + types of serialisation + pagination+ token authentication and validation

  • @DevagyaTak
    @DevagyaTak 6 месяцев назад

    7:35

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

    i am getting the error as django.db.utils.OperationalError: no such table: home_person

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

    hello am getting
    {
    "detail": "Unsupported media type \"text/plain\" in request."
    }
    this error in post man and
    Unsupported Media Type: /api/people/
    [25/Sep/2023 12:51:31] "POST /api/people/ HTTP/1.1" 415 62
    this error on terminal do anyone know how to resolve it

    • @MANISH12665
      @MANISH12665 2 месяца назад

      select json from postman you were sending as plain text

  • @Dineshtech-xr8id
    @Dineshtech-xr8id Год назад

    im getting this error obj = Person.objects.get(id=data['id'])
    ~~~~^^^^^^
    KeyError: 'id' when i try to validate