No video

Django REST Framework - Build an API from Scratch

Start your software dev career - calcur.tech/de... 💯 FREE Courses (100+ hours) - calcur.tech/al...
🐍 Python Course - calcur.tech/py...
Timestamps:
00:00 - Introduction
02:05 - Create a virtual environment
03:38 - Install packages
04:01 - Create our Django project
05:36 - Apply migrations
06:31 - Intro to admin site
07:31 - Create our model
08:50 - Create our own migration
12:37 - Start REST framework
13:43 - Create our serializer
14:53 - Create our view endpoints
18:57 - CRUD
22:28 - POST request
27:17 - Drink details - GET
32:50 - Drink details - PUT
34:22 - Drink details - DELETE
36:25 - Getting JSON through browser
37:59 - Consuming the API
✅ Data Structures & Algorithms - calcur.tech/ds...
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/ne...
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/sub...
👨🏻‍🎓 Courses - www.codebreakt...
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com...
🅿 Patreon - calcur.tech/pat...
🅖 GitHub Sponsors - github.com/spo...
Ⓟ Paypal - paypal.me/calcur
#python #django
🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
📈 Buy Bitcoin - calcur.tech/cr...
Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/cr...
#python #django #webdevelopment

Пікірлер: 203

  • @codebreakthrough
    @codebreakthrough2 жыл бұрын

    (FREE) Early access course notes - calcur.tech/backend-notes Links: Django Crash Course - kzread.info/dash/bejne/d6l2s7eYncy4lbA.html github.com/CalebCurry/django-api

  • @jangrobler1208

    @jangrobler1208

    2 жыл бұрын

    Hello Caleb,what advice do you have 38 year olds who want to start learn coding from scratch,say Java?

  • @ameyapotdar461

    @ameyapotdar461

    2 жыл бұрын

    Hi Caleb can you make a video on how to filter products using django and ajax?

  • @New_Tech-j2v

    @New_Tech-j2v

    Жыл бұрын

    @@jangrobler1208 What??

  • @sose43

    @sose43

    Жыл бұрын

    Hello you did a Short video in which 0you declared an end to coding. what message are you trying to pass to us wanting to reach your coding skills

  • @xmeshu
    @xmeshu Жыл бұрын

    This is exactly what I needed for my uni project. Straight to the point, through the basics. Amazing introduction after which I can really understand the framework. Big thumbs up Caleb!

  • @TrendzNoww
    @TrendzNoww5 ай бұрын

    I don’t normally comment on KZread videos but trust me you are a true Gem and you have made my Research portfolio Journey to be a success already … the backend is really the core of your application thanks so much … would really love to interact ❤❤

  • @keifer7813
    @keifer7813 Жыл бұрын

    Just started learning Django and now I'm getting familiar with DRF. I say this with no exaggeration - you are one of, if not, the best instructors on KZread. Never leaves a line of code unexplained. Legend

  • @prasannasundaram9158
    @prasannasundaram91582 жыл бұрын

    Thanks Caleb. You untangle complex subjects, demystify them and present it in a way that puts your audience at ease and bring them back for more content. Your unassuming and friendly persona adds to the joy of learning. Vamos, my bro!!!

  • @MorbidPasta
    @MorbidPasta2 жыл бұрын

    I started my summer quitting my job at a dead-end dev job. Started re-familiarizing myself with c++ for fun using your videos, then helped myself with some DS&A with your videos. And now I'm looping back around to REST APIs which I was previously writing at my old job, with new knowledge... and find that you've got these videos too. You've had my full attention this summer lol

  • @chemsel-hakmahouche8371
    @chemsel-hakmahouche8371 Жыл бұрын

    Always wondered what api's were and here i get the confirmation i was expecting. Thank you for making it crystal clear as you always do. You're the best teacher i could ever have.

  • @markcruz3
    @markcruz35 ай бұрын

    I started watching this video yesterday and I must say that this is the only video beginners need. I just don't know what others are doing

  • @frontendmechanix
    @frontendmechanix8 ай бұрын

    My new job required extensive use of Django REST and I never used Django throughout my career. This is the perfect tutorial. You just created a masterpiece. Phenomenal!

  • @syphon22
    @syphon2211 ай бұрын

    This is by far the BEST video explaining DRF API's on the internet. I have been learning Django the last month or so and this video makes everything CLICK! Thank you for all your hard work creating this content!!

  • @cruegger123
    @cruegger123 Жыл бұрын

    Caleb, I just watched this video and it's amazing. I learned more watching this video than I have by googling and reading about Django REST applications for the past week. You are a highly skilled and gifted teacher. In my experience, good knowledge transfer skills are rare. You know how to present information in a clear, step-by-step manner with a friendly, unassuming style. Great job!

  • @janderoyalty1030
    @janderoyalty10302 жыл бұрын

    I've learned more in the first 30 minutes of this video than all my Googling yesterday. Hope the last 11 minutes are just as good. Thanks for this!

  • @neelshah1943
    @neelshah19438 ай бұрын

    Awesome work Caleb! You made me fear less about learning Python backend development. Journey to fearlessness with Django, RestAPIs, and databases!

  • @leratoblos6728
    @leratoblos67282 жыл бұрын

    Caleb. from South Africa, I am forever thankful. I started with C++ while in University. I have learned a lot from you.

  • @kyawmying224
    @kyawmying2247 ай бұрын

    Oh for God Sake,I found the right video with right person to explain me to understand what I am looking.Thank you

  • @andrewpitta927
    @andrewpitta927 Жыл бұрын

    bro bro bro...i really wanna thank you soo much...this helped me a lot..it cleared a lot of confusion .... ihv been going through the documentation but i got struck with some confusion ... this vedio helped me to clear that !!!

  • @wmkc8487
    @wmkc8487 Жыл бұрын

    All these years I have been running away from this framework haha... I'm glad I found this guy today.

  • @Pumba128
    @Pumba128 Жыл бұрын

    looking at Caleb's gentle smile from the thumbnail makes my day already better

  • @AliceInBloom
    @AliceInBloom2 жыл бұрын

    Such a great video. Well done ! Very useful and concise, right to the point !

  • @patience_paul5277
    @patience_paul5277Ай бұрын

    Best DRF Tutorial so far

  • @jerryb707
    @jerryb7072 жыл бұрын

    Thank you so much for thos course, Caleb! I am coming from a flask and fastAPI background and I needed to learn the django rest framework for a prospective job and this has been an amazing introduction. Aside the fact that I think django comes with too much boilerplate code, I think its worth learning. Your video was very easy to understand and I can't wait to check out your other videos too. you're amazing!!

  • @MwaiWired
    @MwaiWired2 жыл бұрын

    concise and impressive, direct to point makes easy to understand😊

  • @amanessa9467
    @amanessa94672 ай бұрын

    This is what I've been looking for. Thanks a lot Caleb!

  • @HeisenbergHK
    @HeisenbergHK5 ай бұрын

    This was amazing, thank you for this tutorial. The thing that i loved was that this tutorial thought me the stuff I really needed not “extra useless information”.

  • @CaptWindShear
    @CaptWindShear Жыл бұрын

    Probably the most clear and best sequenced and structured approach on the subject I have seen. Thanks!

  • @md.rahatbinomar8582
    @md.rahatbinomar85827 ай бұрын

    This is my first Django_rest_framework project . really I happy to see your teaching approach 💕💕💕💕

  • @user-jt5mc2kr4m
    @user-jt5mc2kr4m2 жыл бұрын

    What a great lecture! Thanks a lot again, Caleb!

  • @zb2747
    @zb27472 жыл бұрын

    Great brief overview - straight to the point and simple to understand the basics and concepts

  • @elenamikhaylova5086
    @elenamikhaylova50864 ай бұрын

    you are very clear and good at explaining somethign fairly complicated. great video, helped alot. thanks

  • @ProfesorCafe
    @ProfesorCafe2 жыл бұрын

    Is like getting CS classes from Michael Cera. Man it feels good to learn this way.

  • @amarjoshi8583
    @amarjoshi8583 Жыл бұрын

    Finally…I got the thing I wanted…thank you so much…you made my day..thanks

  • @briankimurgor4343
    @briankimurgor43436 ай бұрын

    Man, you teach so well, big up from Kenya

  • @bigrob1971
    @bigrob19712 жыл бұрын

    Very well presented, not padded out with crap - well done!

  • @Aoekin
    @Aoekin2 жыл бұрын

    Awesome just watched your api video using the flask app, so glad you have django because that is what I am working on.

  • @AnyanwuChimebuka
    @AnyanwuChimebuka Жыл бұрын

    This is one of the best tutorial on DRF

  • @AnmolWanderer
    @AnmolWanderer Жыл бұрын

    Thanks a lot man ! Learned a lot . Just hope I clear this interview !

  • @blessycheriyan5870
    @blessycheriyan5870 Жыл бұрын

    Tremendous Experience ,I didn't ever seen awesome django videos , Here is the right place & clear crystal concept for Restful api , Thank you for taking much effort for uploading django tutorial, Still waiting for more useful concept for Upcoming django tutorial,

  • @kishanmishra7383
    @kishanmishra738311 ай бұрын

    Short, crisp, concise and amazing.

  • @joseraulmachadofernandez9744
    @joseraulmachadofernandez97442 жыл бұрын

    You really have a gift for teaching. Thank you for this great video.

  • @sadullahtanrkulu1970
    @sadullahtanrkulu19702 жыл бұрын

    excellent video, simple, clear and detailed explanations(not confusing), now I have an API and API building knowledge, thanks a ton

  • @kels-nz9if
    @kels-nz9ifАй бұрын

    Thank you so much Caleb, GOD BLESS YOU 🙏

  • @bassethoundgang2800
    @bassethoundgang2800 Жыл бұрын

    Great lesson Caleb. I can totally see the potential for using django where I work. Thanks again!

  • @rogerbjj
    @rogerbjj2 жыл бұрын

    .objects.all() is comming up as invalid syntax. My model object does not have an objects attribute.

  • @samzojaji8745
    @samzojaji8745 Жыл бұрын

    Very good, clear, easy to understand for beginners like me. Thanks, Caleb.

  • @bakterio
    @bakterio2 жыл бұрын

    Super video Caleb!!! I am looking foward to your new videos.

  • @mohammadaliirandoust9649
    @mohammadaliirandoust9649 Жыл бұрын

    thanks, this video enlightened me about what is REST about.

  • @tabmax22
    @tabmax222 жыл бұрын

    So this is using the built in database sqlite3?

  • @georgeadrianilie1612
    @georgeadrianilie161210 ай бұрын

    Hello Caleb ! I have enjoyed your tutorial and the way you explain things very much and I would like to ask you to make a sequel for creating the explanation of logic with DRF of adding to cart and from cart adding to order and flushing the cart with a limit of one cart for each user at a time. Tank you !

  • @poovarasan1292
    @poovarasan1292 Жыл бұрын

    Thank You So Much Sir🤝. Very very useful Content Perfect To understand django & rest framework you coverd all workflow in django

  • @rykleditz
    @rykleditz Жыл бұрын

    if .venv/bin/activate does not work, use "the name u have given for the virtual environment"/scripts/activate

  • @davidjacobs3090
    @davidjacobs30902 жыл бұрын

    Best DRF tutorial i have come across 👏🏽

  • @stephmukami3817
    @stephmukami3817 Жыл бұрын

    comprehensive and well presented..best video by far

  • @whatvideo3107
    @whatvideo3107 Жыл бұрын

    thank you so much, this is of great benefit for a beginner me. it has helped me understand many things

  • @amangautam1779
    @amangautam17792 жыл бұрын

    getting error while testing in postman unable to test GET and POST method!!

  • @fithaashraf8385
    @fithaashraf83852 жыл бұрын

    Hey, can anybody help me with token based user authentication .Which type of users are authenticated using this method ,like the backend users in admin side or frontend users?

  • @codelearnacademy4314
    @codelearnacademy43142 жыл бұрын

    Hi Caleb, you're an extra ordinary tutor. I have benefited immensely from your videos. But, you might want to magnify your screen a bit to make your code more visible. Thank you

  • @climbeverest
    @climbeverest2 жыл бұрын

    good job man, i needed something shorter than 7 hours, actually max 2 hrs to get started fast with django.

  • @rampun5788
    @rampun5788 Жыл бұрын

    Thanks alot for this AWESOME video! I am learning Python and it helped a lot

  • @user-rk3pp6ec1u
    @user-rk3pp6ec1u Жыл бұрын

    Caleb, thank you so much for this tutorial!

  • @julianm080808
    @julianm0808089 ай бұрын

    Caled thanks for your awesome video, please keep it up God bless you.

  • @durgeshkshirsagar116
    @durgeshkshirsagar1169 ай бұрын

    Thanks man. Great explanation with example.

  • @sowjanyashetty4643
    @sowjanyashetty4643Ай бұрын

    thank you , this was really helpful.

  • @yhasmanivaldes6217
    @yhasmanivaldes6217 Жыл бұрын

    Awesome, great job. Everything well explained

  • @arek6296
    @arek6296 Жыл бұрын

    All neccessery konwledge to run your api application. Very informative, thanks !

  • @info662
    @info6622 жыл бұрын

    Awesome tutorial. Subscribed by the way!

  • @IsmailDX
    @IsmailDX10 ай бұрын

    Thank you Caleb for this Amazing tutorial!

  • @Mogwai88
    @Mogwai882 жыл бұрын

    This was very useful, thanks alot Caleb!

  • @loc5706
    @loc5706 Жыл бұрын

    Wow! 40 solid gold minutes🙏

  • @gabrielazambrano1552
    @gabrielazambrano15529 ай бұрын

    Thank so much for this video Caleb!!

  • @brindanodem9234
    @brindanodem9234 Жыл бұрын

    Merci beaucoup ... Vous avez expliqué d'une très bonne manière

  • @abdullasogay5758
    @abdullasogay57582 жыл бұрын

    Keep it coming Caleb!!

  • @zaheerbeg4810
    @zaheerbeg4810 Жыл бұрын

    Thanks celeb, you are adorable, precise and perfect explanation , Thanks again

  • @russelpeter2814
    @russelpeter2814 Жыл бұрын

    Thanks Caleb, straight to the point.

  • @haseebyaseen4955
    @haseebyaseen49552 жыл бұрын

    Thanks for such an amazing and to-the-point video.

  • @saibhargavkarna6365
    @saibhargavkarna63658 ай бұрын

    Wow sir, this is simply superb...

  • @themarksmith
    @themarksmith2 жыл бұрын

    Love this style of video - thanks!

  • @hiboktalampak1473
    @hiboktalampak14732 жыл бұрын

    sir, do you have a tutorial on how to properly plan on creating a project application? like i get the planning phase but how is it actually done, let say for example, im gonna create a point of sale system, or an e commerce store system. i dont know where to begin.

  • @xzex2609
    @xzex26097 ай бұрын

    Dear Caleb you are a great teacher but unlike other programmers who using dark mode cause light attracts bugs into the system LOL , kidding aside man new monitors with the level of blue light that they have blind the reader , and I download most of my videos (I do like my fare share of times) and in 720 white pages are blinding . please consider this in your new videos. its not a matter of choice , we go blind if we use light modes in brand new monitors

  • @charlesmaina8946
    @charlesmaina8946 Жыл бұрын

    Well done engineer..Great great tutorial

  • @zain.sadaqat
    @zain.sadaqat7 ай бұрын

    I'm getting the following error: AssertionError at /drinks/ Cannot apply DjangoModelPermissionsOrAnonReadOnly on a view that does not set `.queryset` or have a `.get_queryset()` method.

  • @tabmax22
    @tabmax222 жыл бұрын

    4:25 If we were using React JS for the front end, and Django for the back, should we use django-admin startapp instead of start project? And name it backend?

  • @codebreakthrough

    @codebreakthrough

    2 жыл бұрын

    Start watching my new series, it’s react JS and we end up using a django backend! You’ll love it

  • @codebreakthrough

    @codebreakthrough

    2 жыл бұрын

    Start watching my new series, it’s react JS and we end up using a django backend! You’ll love it

  • @tabmax22

    @tabmax22

    2 жыл бұрын

    @@codebreakthrough which one is it? can't seem to find

  • @elielzinsou89
    @elielzinsou892 жыл бұрын

    Amazing, your way to teach is great.

  • @kartikchauhan5209
    @kartikchauhan52092 жыл бұрын

    why did u make files in project and not create a separate app named drinks in the project?

  • @shubhangibhosale7765
    @shubhangibhosale77657 ай бұрын

    Thank you Caleb!!

  • @ThubaMamba
    @ThubaMamba2 жыл бұрын

    This was a very informative video. Thanks man.

  • @geraldkaute8284
    @geraldkaute82843 ай бұрын

    - Hi - I like your tutorial - 22:47 : but just wondering why you used two if statements when best practise it to use if elif else As I said - just asking - maybe it's like that in pythin and django. Love your video - your style etc...

  • @suryamachani2417
    @suryamachani24175 ай бұрын

    Great Course !

  • @Will2code
    @Will2code2 жыл бұрын

    Great tutorial. Thanks for the hard work

  • @uttejkuruva9105
    @uttejkuruva910510 ай бұрын

    why am I getting this error when I try to post, seriously cant figure it out. the post method from the django admin page works again. I followed almost entirely the same code "detail": "Unsupported media type \"text/plain\" in request."

  • @roppique
    @roppique2 жыл бұрын

    Thank you very much. I learned a lot with this lesson :)

  • @mbtechbites
    @mbtechbites2 жыл бұрын

    I got that same shirt! LOL thanks for the tutorial

  • @kareemrasheedbabatunde9026
    @kareemrasheedbabatunde90263 ай бұрын

    I love this video, can I get you train me on how to consume Django rest API fully with mobile apps...let's talk

  • @amanahmed6057
    @amanahmed6057Ай бұрын

    In windows vs code i am not able to create virtual envrionment itself

  • @HOSSEINSTINSON
    @HOSSEINSTINSON10 ай бұрын

    excellent explained

  • @houdamda2434
    @houdamda24342 жыл бұрын

    thank you so much that saved me so much time !

  • @jashanpreetsingh2443
    @jashanpreetsingh24432 жыл бұрын

    Thx a lot bruh . Love from India

  • @georgetriafylos
    @georgetriafylos10 ай бұрын

    helpful tutorial. worth the 40min

  • @GaganDeepSinghMusic
    @GaganDeepSinghMusic2 жыл бұрын

    It was helpful, thanks for sharing!

  • @pharaoh9483
    @pharaoh94838 ай бұрын

    30:57 drink = get_object_or_404(Drink, pk=pk) less to type than with the try and catch

  • @itcommunications2057
    @itcommunications2057 Жыл бұрын

    This helped a lot...Thank You