Django Rest Framework | Serializers & CRUD

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • Check out my Python Django Course!
    dub.sh/NvGboTI
    Building REST API's with the Django REST Framework. Introduction to DRF and serializing data along with CREATE, UPDATE and DELETE functionality.
    Follow me on Twitter: / dennisivy11
    Source code: github.com/div...
    Django REST Framework documentation: www.django-res...

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

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

    Don't forget to check out my Complete Django course: dub.sh/NvGboTI

  • @shikharsharma3980
    @shikharsharma3980 3 ปีที่แล้ว +60

    When you mention official documentation, you just proves you are the best out there, you have motivated me to start shifting my learning approach from tutorial to documentations.
    Thanks a lot man, you are doing a great job

  • @blablabla670
    @blablabla670 ปีที่แล้ว +12

    Other mentors talk and talk for hours to the point things become confusing. Dennis explains in 10 minutes with clarity and no 'fat'. I just love his teaching style. So far, best teacher I came across. Please Dennis upload more videos, you are the reason I am coding now

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

    Watching your tutorials makes me more confident about the interviews.

  • @k.santiagodiaz3744
    @k.santiagodiaz3744 4 ปีที่แล้ว +45

    Your channel is a goldmine for my Django learning journey. Thank you so much for sharing this quality content!

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

      He is the django legend for me. He is my go to guy for django and never disappoint.

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

    This has to be one of the most straightforward, concise, and culled videos on Django I have ever seen. 10/10

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

    This deserves way more likes and shares. You are truly amazing!, I was not able to understand the Rest API even after watching so many videos but this one was AMAZING!

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

    BEST DJANGO REST TUTORIAL. Seen them all, even udemys. This is condensed, perfectly explain. Keept it pretty vanilla but in enoguh dept. Congrats!

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

      Thank you! I still need to get back to this series. Got caught up with a few other projects.

  • @RahulSoni-km6oc
    @RahulSoni-km6oc 3 ปีที่แล้ว

    day 2 of my internship and im leraning REST from you. thanks dennis.

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

    The simplest explanation of Django Rest Framework in such a short period of time. Straight to the point. Really amazing

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

    Dennis, You really understand what it takes for an efficient and modern app!!
    You manage the perfect languages ​​to achieve success. I hope you help us with a bit of Celery in the future. Thanks so much my friend!!

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

      I appreciate that Sebastian :) I definitely plan to do a few videos with Celery. I'm working on a few videos for this course and a the few projects so its been tough getting to it. Its highly requested.

  • @fforfun8931
    @fforfun8931 4 ปีที่แล้ว

    simple and best i watced lots of videos for rest_framwork but here i got whati wanted . thanks brother you deserve millions of subscriber

  • @GuluMammadli
    @GuluMammadli 3 ปีที่แล้ว +5

    Explained in a very simple and easily understandable way. Thanks a lot Dennis! Your channel definitely deserves more views and subs

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

    The way you explain and keep it as simple as possible is really beautiful. Thank you

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

    Ah! This is high quality content Dennis! Thanks for the video! 😊

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

      I appreciate that Aashay :)

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

    Thanks man, finally somebody who explains it well.

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

    Eagerly waiting for this series, you're awesome.

  • @Acel-01
    @Acel-01 3 ปีที่แล้ว +1

    I really love this particular tutorial. Very short and concise. Was a great refresher for me

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

    Hey Dennis, i'm more familar with java + spring boot framework. But i recently got an job opportunity in python + django. I learned a lot from your tutorial about django, and in just few days i was able to create my first, simple app with basic GUI. Now i'm moving to django rest framework, i just wanted to say - thank you for your work. I think i will get this job, thanks to you :)

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

      Wow congrats 🎉 So happy my videos were helpful for you! Best of luck!

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

      why you learned java if u wanted to work with django

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

      @@NishantCosmos i wanted to work in java, because there are much more job opportunities, but company i currently work for agreed to take me in if i can show them that i will be able to learn python. (it wasn't intended but i decided to go with it. Company location is very close to where i live and i already know people in there)

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

    This is probably the best backend tutorial I have seen. Django > node

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

    Excellent work, Hope some tutorial how to work "scheduling request" (using celery) with django rest api

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

      Soon my friend :) Thanks for your support and feedback!

  • @adityaprasaddhal2462
    @adityaprasaddhal2462 4 ปีที่แล้ว

    Thanks you so much 🥰
    Using django restframework was a nightmare for me until I watched this video

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

    Mate!! You are a legend and the best. You have just made this so much easier to understand!!

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

    Thank you for providing source code in the description

  • @danielnderitu5886
    @danielnderitu5886 4 ปีที่แล้ว

    An awesome short tutorial, a refresher for Django Rest Framework. Thanks for sharing it.

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

    Explained in such a simple way. Awesome work.

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

    It is Really very helpful to learning 🔥 Django from your every video... I want to thank you bro for your all tutorials.
    .
    .
    You "vera level"❤️

  • @asjadahmedkhan9661
    @asjadahmedkhan9661 4 ปีที่แล้ว

    You are making look Django Rest Framework so Easy....Great work brother....Straight away I subscribed your channel..

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

    Thank you Sooo much ,, your tutorials are very straightforward ,, with minimized complexities .

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

    Thank you Dennis. i completd CRUD APIs for ToDo.

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

    I'm all for this! Subscribed for more django REST framework + react.

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

    The best tutorials I've ever seen
    THANK YOU!

  • @politicallynotcorrect2968
    @politicallynotcorrect2968 4 ปีที่แล้ว

    must say the way you explain make it so simple!

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

    And here I was using the "serializer.serialize" method... One question tho, if you have another model, for example, Subtask which is a child of a Task (foreign key), can you also access these subtasks after you serialize Task?

  • @truejohnsolo
    @truejohnsolo 4 ปีที่แล้ว

    I jumped into python literally only yesterday, now I'm watching this LOL. But I'm already really familiar with express so it's not totally foreign... This is the kind of high intensity, no beating around the bush content I need though!! Thanks!!

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

      The fundamentals are totally the same as with every framework. You have models, routers, and views. However, Django is convention over configuration. If I will compare anything to Express, that would be Flask web framework. Good luck anyway!

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

      And i notice your comment was one year ago so you probably know more of Django by now I suppose.

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

    I just love how you explain things
    🙇🏿thank you

  • @AmitYadav-sw6dx
    @AmitYadav-sw6dx 3 ปีที่แล้ว

    Thank you so much dennis...U are helping a lot of people with your amazing and extremely useful contents 🙏

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

    Budy, thank you so much! You gave an extremely wealth knowledge in a so easy way!

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

    Hey, dude, awesome video! Keep up the great work. I love the fact that it’s condensed and fast paced and straight to the point! Really really cool. Just out of curiosity: do you have any Bulgarian roots? I noticed your surname is Ivanov. Peace out from Bulgaria ^_^

  • @reapergrim5324
    @reapergrim5324 4 ปีที่แล้ว

    Thank you Dennis for such easy and simply tuorials .
    and for anyone whos looking to lock certain api request can do this
    from rest_framework.decorators import api_view , permission_classes
    from rest_framework.permissions import IsAuthenticated , IsAdminUser
    @api_view(['GET','DELETE'])
    @permission_classes((IsAuthenticated,IsAdminUser ))
    def productDetial(request,pk):
    try:
    product = Product.objects.get(id=pk)
    except Snippet.DoesNotExist:
    return HttpResponse(status=404)
    if request.method == 'GET':
    serializer = ProductSerializer(product)
    return Response(serializer.data)
    elif request.method == 'DELETE':
    product.delete()
    return HttpResponse(status=204)

  • @mrpi230
    @mrpi230 4 ปีที่แล้ว

    You make the concept very clear. Thank You.

  • @1992pushpendra
    @1992pushpendra 4 ปีที่แล้ว

    Awesome! Excited for what's to come in the series! Much thanks!

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      Thanks for watching :)

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

    At last, i found something precise... Thanks for it

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

    Thank you so much. Your explanation is so clear and I am very happy that I can run the code successfully in just once attempt :)) I hope I will complete my homework to create a django-react website

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

    dennis ,thanks alot,i appreciate you,you just saved my life.

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

      Keep going my friend! Thank you for your feedback :)

  • @fasterfasterr6056
    @fasterfasterr6056 4 ปีที่แล้ว

    ooooh the best django rest api tutoriel ,the simple and the faste one.

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

    Really talented mentor thank you for starightforward tutorials

  • @ngenge_senior
    @ngenge_senior 4 ปีที่แล้ว

    Your tutorials are really great. Great work

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

    Thanks to the best Django tutor out there.✌️

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

    Is it just me or is it refreshing seeing a tutorial that’s using windows?

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

      Lol no. Also sublime text is pretty cringe compared to neovim, pycharm or vscode

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

    Excellent, It's really easy to understand

  • @julianbazanaguirre8439
    @julianbazanaguirre8439 4 ปีที่แล้ว

    Kudos dude! I started watching your tutorial Django for Beginners (almost completed the project), then I moved on onto learning React because I saw greater market opportunities where I live. Then I actually got my first freelancer job as a React Developer, and at the same time some bigger company wanted to hire me to work with Python, Django and JavaScript. We are actually building an API manager. I am coming back to ur tutorials because I think it's going to help me to solve a problem I have with the admin dashboard of the project: I have a model with 2 Foreign Keys in Django and I need to pass that info to the frontend, there Backbone JS will handle the models, allow the user to add more fields to those models, or erase them, and then send the data back to the server).
    Thanks for all the effort and good work u r putting in these videos! Really appreciate the effort. How can we contribute for you to keep up the good work??
    I think the Django-REST framework combined with React is a Hot Topic. I welcome more of those projects!

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

      So how's your project going

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

    Great tutorial. Perfect tempo, covered a lot so it is easy to get started. Thanks.

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

    Nice tutorial bro, it helped me a lot to understand restframework

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

    Plz Continue these series

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

    Short and sweet, thank you!

  • @hpdipto
    @hpdipto 4 ปีที่แล้ว

    Wow! How the fundamentals are cleared with such short time.

  • @TheAremoh
    @TheAremoh 4 ปีที่แล้ว

    Weldone Denis. Now onto front-end. Thank you

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

    Thank you man. You are the best.

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

    Clap for Dennis 👏

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

    Great great great!! Thank you so much for this awesome video

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

    Awesome Dennis, I am loving your videos :) real informative video..

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

    Thank you! clear and easy to follow.

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

    Excellent video Dennis, thanks for sharing

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

    OMG my PEP8 spider sense is constantly triggered watching this.

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

    Really helpful.
    Dennis, could you please make a video on how to import 100s of XML data into sql tables at once using django serialisation

  • @jakubfraszczak328
    @jakubfraszczak328 4 ปีที่แล้ว

    Incredibly clear and helpful resource

  • @ryan_0337
    @ryan_0337 4 ปีที่แล้ว

    You're awesome Dennis, you deliver a lot with your work thanks

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      I appreciate that Ryan :)

  • @os1122
    @os1122 4 ปีที่แล้ว

    Thanks for the hard work, waiting for the next deployment..

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

    Amazing ! Just what I was looking for

  • @rangabharath4253
    @rangabharath4253 4 ปีที่แล้ว

    Awesome as always. Thank u so much Dennis.

  • @natarajan3
    @natarajan3 4 ปีที่แล้ว

    I am learning django ...u r all django tutorial I can understand easily . will job saghaa hear saghaa mean brother as my own...

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

    thank you for all your you are the best youtuber

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

    i subscribed just for django restframework

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

    Hi, still waiting for more videos on this tutorial series oh and hope 2021 isn't so bad for you.

  • @raghu6743
    @raghu6743 4 ปีที่แล้ว

    Nice tutorial...will wait for upcoming videos

  • @adelabu-ghazaleh1228
    @adelabu-ghazaleh1228 3 ปีที่แล้ว

    You do it like Superman. I will raise my hat to you

  • @정성민-d5c
    @정성민-d5c 3 ปีที่แล้ว

    wow... really nice explanation! thank you for an amazing video!

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

    simple, clean, awesome

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

    Hey, Dennis plz complete this rest framework playlist. I just love to learn from you.

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

    Hi , at 2:54 why did you have to explicitly specify the AppConfig inside the apps.py, when it was ok to just specify 'api' inside the INSTALLED_APPS? Just curious.

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

    I got this problem can you tell me how to fix this ( Lists are not currently supported in HTML input. )

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

    Man, your smile kills.

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

    your videos are amazing, they are all so helpful. u r literally the reason I use django. now, im trying to make an API with SSO system using django. could u please make a tutorial for it? it'd be really great.

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

    This is a really nice DRF tutorial video, but there should be a warning for people with pep8-related OCD.

  • @AliAbdullah-oi3wc
    @AliAbdullah-oi3wc 3 ปีที่แล้ว

    Thank you so much, this is enough to get me started!

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

    Thanks for this. Great tutorial

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

    Thanks a lot for the explanation.

  • @alter.nativotech3823
    @alter.nativotech3823 4 ปีที่แล้ว

    You rock Dennis!

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

    Thanks, this video helped me quite a lot!!!

  • @JagSan.
    @JagSan. 11 หลายเดือนก่อน

    Hey Dennis! Thanks for the tutorial, it's really great! Why not use PUT method on the taskUpdate ? Thanks for your answer and for your time. regards.

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

    Sir, I tried models task then succeeded but when I made a new models its error, "Serializer' is not defined". When I make it already the same as task Serializer. Do you know why? Thanks

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

    Thank you very much! You help me out a lot!

  • @joshuahadap2373
    @joshuahadap2373 4 ปีที่แล้ว

    Excellent work, I've been following you ever since I started in django and a lot of knowledge that I have came from you, will we see and django rest framework tutorial into the future like a complete one, thanks.

  • @NguyenLam-vt9jp
    @NguyenLam-vt9jp 2 ปีที่แล้ว

    Hey Dennis, I have a noob question regarding the use of the REST API in general with Django. Is this whole REST API way of interacting with the django site supposed to entirely replace the "normal" way of creating a site with views/forms/templates/urls? Or is the REST API simply an additional and separate means for "external" sites or clients to interact with our data, and not meant for actual "on-site" browser usage?
    If it is supposed to replace the normal site, then things like templates, js form validation we have written would basically need to be rewritten to handle and render the json data on our page.
    Thanks for your tutorial

  • @mohammedqadir3851
    @mohammedqadir3851 4 ปีที่แล้ว

    Thank you sir and i am understand fully concept thank you.......sir.
    I will try to complete work you give that all of you.

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      I'd love to see your work :) It's really rewarding to see work form someone who's learned from my videos.

  • @Jawahar-Engr.
    @Jawahar-Engr. หลายเดือนก่อน

    Very useful content, thank you!

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

    Amazing content Dennis!! thanks for sharing :D

  • @malikbrahimi7504
    @malikbrahimi7504 4 ปีที่แล้ว

    What's the best way to structure relational data and routes? Let's say you had a parent list model to which a todo is foreign keyed. In your frontend you'd have a master view for the array of lists, and you'd click on one to get the corresponding list of the todos.
    I've been looking at useSWR for React, but I'd need to structure my API on the backend to properly cache related data on the frontend. That being said how do you effectively create routes and views for related data. Would you have /api/lists and /api/lists//todos or /api/todos at the toplevel? Is there a mixin to handle this? I have yet to see more advance view declaration.

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

    Exellence sir i have watched all your django playlist and i know more and now i can create some major project using django..
    Sir i have one suggestion for u can u please make a video on django channels and how to use