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
(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
2 жыл бұрын
Hello Caleb,what advice do you have 38 year olds who want to start learn coding from scratch,say Java?
@ameyapotdar461
2 жыл бұрын
Hi Caleb can you make a video on how to filter products using django and ajax?
@New_Tech-j2v
Жыл бұрын
@@jangrobler1208 What??
@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
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!
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 ❤❤
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
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!!!
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
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.
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
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!
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!!
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!
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!
Awesome work Caleb! You made me fear less about learning Python backend development. Journey to fearlessness with Django, RestAPIs, and databases!
Caleb. from South Africa, I am forever thankful. I started with C++ while in University. I have learned a lot from you.
Oh for God Sake,I found the right video with right person to explain me to understand what I am looking.Thank you
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 !!!
All these years I have been running away from this framework haha... I'm glad I found this guy today.
looking at Caleb's gentle smile from the thumbnail makes my day already better
Such a great video. Well done ! Very useful and concise, right to the point !
Best DRF Tutorial so far
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!!
concise and impressive, direct to point makes easy to understand😊
This is what I've been looking for. Thanks a lot Caleb!
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”.
Probably the most clear and best sequenced and structured approach on the subject I have seen. Thanks!
This is my first Django_rest_framework project . really I happy to see your teaching approach 💕💕💕💕
What a great lecture! Thanks a lot again, Caleb!
Great brief overview - straight to the point and simple to understand the basics and concepts
you are very clear and good at explaining somethign fairly complicated. great video, helped alot. thanks
Is like getting CS classes from Michael Cera. Man it feels good to learn this way.
Finally…I got the thing I wanted…thank you so much…you made my day..thanks
Man, you teach so well, big up from Kenya
Very well presented, not padded out with crap - well done!
Awesome just watched your api video using the flask app, so glad you have django because that is what I am working on.
This is one of the best tutorial on DRF
Thanks a lot man ! Learned a lot . Just hope I clear this interview !
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,
Short, crisp, concise and amazing.
You really have a gift for teaching. Thank you for this great video.
excellent video, simple, clear and detailed explanations(not confusing), now I have an API and API building knowledge, thanks a ton
Thank you so much Caleb, GOD BLESS YOU 🙏
Great lesson Caleb. I can totally see the potential for using django where I work. Thanks again!
.objects.all() is comming up as invalid syntax. My model object does not have an objects attribute.
Very good, clear, easy to understand for beginners like me. Thanks, Caleb.
Super video Caleb!!! I am looking foward to your new videos.
thanks, this video enlightened me about what is REST about.
So this is using the built in database sqlite3?
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 !
Thank You So Much Sir🤝. Very very useful Content Perfect To understand django & rest framework you coverd all workflow in django
if .venv/bin/activate does not work, use "the name u have given for the virtual environment"/scripts/activate
Best DRF tutorial i have come across 👏🏽
comprehensive and well presented..best video by far
thank you so much, this is of great benefit for a beginner me. it has helped me understand many things
getting error while testing in postman unable to test GET and POST method!!
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?
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
good job man, i needed something shorter than 7 hours, actually max 2 hrs to get started fast with django.
Thanks alot for this AWESOME video! I am learning Python and it helped a lot
Caleb, thank you so much for this tutorial!
Caled thanks for your awesome video, please keep it up God bless you.
Thanks man. Great explanation with example.
thank you , this was really helpful.
Awesome, great job. Everything well explained
All neccessery konwledge to run your api application. Very informative, thanks !
Awesome tutorial. Subscribed by the way!
Thank you Caleb for this Amazing tutorial!
This was very useful, thanks alot Caleb!
Wow! 40 solid gold minutes🙏
Thank so much for this video Caleb!!
Merci beaucoup ... Vous avez expliqué d'une très bonne manière
Keep it coming Caleb!!
Thanks celeb, you are adorable, precise and perfect explanation , Thanks again
Thanks Caleb, straight to the point.
Thanks for such an amazing and to-the-point video.
Wow sir, this is simply superb...
Love this style of video - thanks!
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.
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
Well done engineer..Great great tutorial
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.
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
2 жыл бұрын
Start watching my new series, it’s react JS and we end up using a django backend! You’ll love it
@codebreakthrough
2 жыл бұрын
Start watching my new series, it’s react JS and we end up using a django backend! You’ll love it
@tabmax22
2 жыл бұрын
@@codebreakthrough which one is it? can't seem to find
Amazing, your way to teach is great.
why did u make files in project and not create a separate app named drinks in the project?
Thank you Caleb!!
This was a very informative video. Thanks man.
- 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...
Great Course !
Great tutorial. Thanks for the hard work
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."
Thank you very much. I learned a lot with this lesson :)
I got that same shirt! LOL thanks for the tutorial
I love this video, can I get you train me on how to consume Django rest API fully with mobile apps...let's talk
In windows vs code i am not able to create virtual envrionment itself
excellent explained
thank you so much that saved me so much time !
Thx a lot bruh . Love from India
helpful tutorial. worth the 40min
It was helpful, thanks for sharing!
30:57 drink = get_object_or_404(Drink, pk=pk) less to type than with the try and catch
This helped a lot...Thank You