Django Rest Framework | Serializers & CRUD

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 347

  • @DennisIvy
    @DennisIvy  6 місяців тому +1

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

  • @shikharsharma3980
    @shikharsharma3980 4 роки тому +62

    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

  • @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 2 роки тому

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

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

  • @PAVANKUMAR-vj8oi
    @PAVANKUMAR-vj8oi 4 роки тому +1

    no one can teach like you.. especially in very short time and straight to the point

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

  • @TSAMikeyo89
    @TSAMikeyo89 3 роки тому +1

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

  • @advaitpatil70
    @advaitpatil70 Рік тому

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

  • @pravarsharma
    @pravarsharma 4 роки тому +1

    That's why I give your channel name to everyone who seeks point to point programming. Beautifully explained and delivered.👌

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

  • @RahulSoni-km6oc
    @RahulSoni-km6oc 3 роки тому

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

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

  • @sammyj29
    @sammyj29 3 роки тому +1

    Most crisp django rest framework tutorial out there. Straight to the point. Thanks!

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

  • @naveensalutagi6318
    @naveensalutagi6318 3 роки тому

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

  • @GuluMammadli
    @GuluMammadli 4 роки тому +5

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

  • @ArshilGenius
    @ArshilGenius 4 роки тому +8

    Eagerly waiting for this series, you're awesome.

  • @aashayamballi
    @aashayamballi 5 років тому +7

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

    • @DennisIvy
      @DennisIvy  5 років тому +1

      I appreciate that Aashay :)

  • @diegoabdo2555
    @diegoabdo2555 4 роки тому

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

  • @1komentator
    @1komentator 3 роки тому +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  3 роки тому +1

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

    • @NishantCosmos
      @NishantCosmos 3 роки тому +1

      why you learned java if u wanted to work with django

    • @1komentator
      @1komentator 3 роки тому +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)

  • @benglash253
    @benglash253 4 роки тому

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

  • @Acel-01
    @Acel-01 3 роки тому +1

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

  • @edgymurphy570
    @edgymurphy570 4 роки тому +3

    Thanks man, finally somebody who explains it well.

  • @asjadahmedkhan9661
    @asjadahmedkhan9661 4 роки тому

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

  • @nihadhassan5612
    @nihadhassan5612 2 роки тому

    Explained in such a simple way. Awesome work.

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

  • @adityaprasaddhal2462
    @adityaprasaddhal2462 4 роки тому

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

  • @danielnderitu5886
    @danielnderitu5886 4 роки тому

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

  • @RuslanKuanyshbayev
    @RuslanKuanyshbayev 3 роки тому

    You are the best! Thx for the video! I am stucked on my project and your two videos gives the answer to it. Thx!

  • @amirhosseinebneroomi7280
    @amirhosseinebneroomi7280 4 роки тому +2

    The best tutorials I've ever seen
    THANK YOU!

  • @rafaelalexandrino2175
    @rafaelalexandrino2175 3 роки тому

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

  • @jahhsonc
    @jahhsonc 4 роки тому +2

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

  • @zommanderz3605
    @zommanderz3605 4 роки тому +39

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

    • @WarrenBey
      @WarrenBey 2 роки тому

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

  • @1992pushpendra
    @1992pushpendra 5 років тому

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

    • @DennisIvy
      @DennisIvy  5 років тому

      Thanks for watching :)

  • @pepepriest5973
    @pepepriest5973 3 роки тому

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

  • @fasterfasterr6056
    @fasterfasterr6056 4 роки тому

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

  • @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"❤️

  • @ngenge_senior
    @ngenge_senior 5 років тому

    Your tutorials are really great. Great work

  • @janeltonvunge9986
    @janeltonvunge9986 3 місяці тому

    I'm in 2024 and this is my first crud in django and you made it so simple thank you so much 🎉

  • @AmitYadav-sw6dx
    @AmitYadav-sw6dx 3 роки тому

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

  • @kirwakelvinkering3122
    @kirwakelvinkering3122 2 роки тому

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

  • @politicallynotcorrect2968
    @politicallynotcorrect2968 4 роки тому

    must say the way you explain make it so simple!

  • @devanshparihar2143
    @devanshparihar2143 3 роки тому

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

  • @mrpi230
    @mrpi230 4 роки тому

    You make the concept very clear. Thank You.

  • @kesterdave
    @kesterdave 5 років тому +2

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

    • @DennisIvy
      @DennisIvy  5 років тому +1

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

  • @shan_singh
    @shan_singh 3 роки тому +1

    Thank you for providing source code in the description

  • @kashibrown9989
    @kashibrown9989 2 роки тому

    I just love how you explain things
    🙇🏿thank you

  • @abdulkaderzilani1825
    @abdulkaderzilani1825 5 років тому +34

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

    • @DennisIvy
      @DennisIvy  5 років тому +13

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

  • @walidnewaz6475
    @walidnewaz6475 5 років тому +4

    Hope so it'll be another great series..

    • @DennisIvy
      @DennisIvy  5 років тому +1

      Thanks walid! By the way I got your email, sorry i haven't had a chance to reply. Congrats on solving the problem you were having!

  • @nitishbhardwaj9603
    @nitishbhardwaj9603 2 роки тому

    Thank you Dennis. i completd CRUD APIs for ToDo.

  • @prashikganer4820
    @prashikganer4820 4 роки тому

    Thanks to the best Django tutor out there.✌️

  • @yamannassar3109
    @yamannassar3109 4 роки тому

    Excellent work, really smooth and perfect

  • @temurochilov
    @temurochilov 3 роки тому

    Really talented mentor thank you for starightforward tutorials

  • @jilhamluthfi3398
    @jilhamluthfi3398 4 роки тому

    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

  • @rise4gamers506
    @rise4gamers506 2 роки тому

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

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

  • @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 3 роки тому

      So how's your project going

  • @ryan_0337
    @ryan_0337 5 років тому

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

    • @DennisIvy
      @DennisIvy  5 років тому

      I appreciate that Ryan :)

  • @clanli
    @clanli 4 роки тому

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

  • @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 ^_^

  • @adelabu-ghazaleh1228
    @adelabu-ghazaleh1228 3 роки тому

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

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

  • @jakubfraszczak328
    @jakubfraszczak328 4 роки тому

    Incredibly clear and helpful resource

  • @palasht2170
    @palasht2170 4 роки тому

    Excellent video Dennis, thanks for sharing

  • @girishmahamuni1830
    @girishmahamuni1830 4 роки тому

    To Clear and Crispy Content thanks brother

  • @huydong3292
    @huydong3292 3 роки тому

    Excellent, It's really easy to understand

  • @rangabharath4253
    @rangabharath4253 4 роки тому

    Awesome as always. Thank u so much Dennis.

  • @정성민-d5c
    @정성민-d5c 3 роки тому

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

  • @shreyaskalrao9779
    @shreyaskalrao9779 2 роки тому

    Short and sweet, thank you!

  • @mahmudsajib8648
    @mahmudsajib8648 5 років тому +2

    Clap for Dennis 👏

  • @luisb9862
    @luisb9862 3 роки тому

    Amazing ! Just what I was looking for

  • @matiasmoglia
    @matiasmoglia 3 роки тому

    Amazing content Dennis!! thanks for sharing :D

  • @TheAremoh
    @TheAremoh 5 років тому

    Weldone Denis. Now onto front-end. Thank you

  • @hpdipto
    @hpdipto 4 роки тому

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

  • @jiweihe3413
    @jiweihe3413 2 роки тому

    Thank you! clear and easy to follow.

  • @libertjorannoutcheu1164
    @libertjorannoutcheu1164 3 роки тому

    thank you for all your you are the best youtuber

  • @raghu6743
    @raghu6743 5 років тому

    Nice tutorial...will wait for upcoming videos

  • @andreaskoszegi257
    @andreaskoszegi257 3 роки тому

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

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

  • @sagarkapse2129
    @sagarkapse2129 5 років тому

    13:28 timestamp , localhost/api/task-list/ json data not found..
    Task List
    GET /api/task-list/
    HTTP 200 OK
    Allow: OPTIONS, GET
    Content-Type: application/json
    Vary: Accept
    [ ]
    empty list

  • @alter.nativotech3823
    @alter.nativotech3823 4 роки тому

    You rock Dennis!

  • @ShaidaMuhammad
    @ShaidaMuhammad 3 роки тому

    Man, your smile kills.

  • @shreyasharma7588
    @shreyasharma7588 3 роки тому

    hey! it's very nice tut. just wanna ask at 7:02 u told about some r url patterns, from where u copied the url patterns. can u provide a direct link can't find out

  • @RustyGeek
    @RustyGeek 3 роки тому

    Thank you man. You are the best.

  • @AliAbdullah-oi3wc
    @AliAbdullah-oi3wc 3 роки тому

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

  • @os1122
    @os1122 4 роки тому

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

  • @sarimahmad478
    @sarimahmad478 3 роки тому

    Plz Continue these series

  • @jees__antony
    @jees__antony 4 роки тому +2

    I like the series, but mine shows "no such table: todo_task" when I try to access task-list, actually where you have created the database and actual data?

    • @victorvaida4272
      @victorvaida4272 4 роки тому +1

      Did you run the migrations?

    • @jees__antony
      @jees__antony 4 роки тому

      @@victorvaida4272 no, thanku I'll try

    • @acment
      @acment 4 роки тому +1

      @@jees__antony did it work?

    • @jees__antony
      @jees__antony 4 роки тому +1

      @@acment yes, it worked fine,

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

  • @cesarsilva7760
    @cesarsilva7760 3 роки тому

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

  • @Digital963
    @Digital963 4 роки тому +1

    where is the data coming from? the one you are accessing from the browser via the routes?

  • @hasithkashyapa7645
    @hasithkashyapa7645 3 роки тому

    i'm using postgres as the database and all the data is captured but when i try the post method it dosen't work the error is that the data is not valid can you give me a help thank you

  • @deepanshuaggarwal7042
    @deepanshuaggarwal7042 4 роки тому

    Can we create an api using django-rest framework that will connect to the database (given by url parameter )and query
    the given table ???

  • @arsarc9495
    @arsarc9495 Рік тому +1

    0:53 what is rest api and why do we need it
    1:40 Introduction to Django Rest API Framework documentation and how to install etc
    2:22 How to install DRF
    2:42 Django Project Setup overview, todo_drf/settings.py
    3:00 models.py
    3:21 todo_drf/urls.py
    3:26 api/urls.py
    3:30 api/views.py
    5:50 DRF for function based views
    7:08 Explaining all the pages we will create
    7:36 api/view.py after all changes
    7:58 Json response vs drf api view with ?format=json
    8:05 Serializing data into JSON data
    10:15 api/serializer.py
    11:57 Serializing one vs many Tasks.
    12:43 api/views.py after taskList view and all imports
    13:08 api/urls.py after adding taskList view
    13:30 the Tasks that Dennis created for the project
    13:35 Start Detail View
    14:27 api/views.py after adding detail view
    15:15 api/urls.py after adding task detail view and fixing pk
    15:45 Starting Create Task view
    16:23 Introduction to request.data from an DRF API View
    17:07 api/views.py after adding taskCreate view.
    17:28 api/urls.py after adding taskCreate url
    17:34 sending a POST request to add a task using DRF api view without using POSTMAN or anything else.
    18:21 Starting the taskUpdate view.
    19:14 api/views.py after adding the taskUpdate view
    20:16 api/urls.py after adding taskUpdate url
    20:17 Starting the taskDelete view
    21:04 api/views.py after adding taskDelete view
    21:22 api/urls.py after adding taskDelete url.
    Thank you for making this tutorial dennis. I watched this when it first came out a while back and was a little overwhelmed because i was still a beginner at django, but after working on a few django projects, I understand enough to follow this tutorial and have a better grasp of it. I made these timestamps so I could refer to it myself if I need a quickstart guide. All the other tutorials required me to download postman or insomnia and I appreciate that you made this tutorial without it first to keep it less overwhelming too.

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

  • @dr.ramkishorsah495
    @dr.ramkishorsah495 4 роки тому +1

    Hey Denis i am watching this after a 3 months when i run /task-list/ after api/ it gives me error that Task has no member objects pls help or remake this video from starting so i can follow it stepwiseli

    • @JoshT4life
      @JoshT4life 4 роки тому

      you might have to run python manage.py makemigrations, then python manage.py migrate, you also have to add from .models import Task
      admin.site.register(Task) for the admin.py file, also look up how to create super user so you can add tasks in the admin panel

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

  • @bisheshworneupane7996
    @bisheshworneupane7996 4 роки тому

    Thank you !!! it is something i was looking for...

  • @randygonzalezgort5262
    @randygonzalezgort5262 2 роки тому

    great job bro!!! nice video!!!