Thanks for watching! Code: github.com/codingforentrepreneurs/Django-Rest-Framework-Tutorial Chapters: 00:00:00 Welcome to the Django Rest Framework 00:01:54 Tools we are using 00:04:36 Setup Python Virtual Environment, Install Req, and Start Django 00:11:40 Creating a Python API Client 00:27:01 Run Django Project 00:31:16 Create your first API View 00:37:06 Echo GET Data 00:47:10 Django Model Instance as API Response 00:54:45 Django Model Instance to Dictionary 01:00:41 Rest Framework View & Response 01:04:27 Django Rest Framework Model Serializers 01:14:45 Ingest Data with Django Rest Framework Views 01:27:05 Django Rest Framework Generics RetrieveAPIView 01:35:54 Django Rest Framework CreateAPIView 01:41:57 Django Rest Framework ListAPIView & ListCreateAPIView 01:44:36 Using Function Based Views For Create Retrieve or List 01:55:17 UpdateAPIView & DestroyAPIView 02:04:05 Mixins and a Generic API View 02:16:33 Session Authentication & Permissions 02:23:21 User & Group Permissions with DjangoModelPermissions 02:30:55 Custom Permissions 02:45:46 Token Authentication 02:59:45 Default Django Rest Framework Settings 03:07:39 Using Mixins for Permissions 03:13:15 ViewSets & Routers 03:25:51 URLs, Reverse, & Serializers 03:33:47 Model Serializer Create & Update Methods 03:41:47 Custom Validation with Serializers 03:53:04 Request User Data & Customize View Queryset 04:08:44 Related Fields & Foreign Key Serializer 04:24:30 Pagination 04:32:36 A Django Based Search for our Product API 04:48:34 Building your Search Engine on Algolia 05:09:54 Agolia Search Client for Django 05:30:22 Unified Design of Serializers & Indices 05:46:48 JSON WEB Token Authentication with simplejwt 06:00:30 Login via JavaScript Client 06:16:23 Handle Request Blocked by CORS via django cors headers 06:23:53 Using JWT with JS Client 06:39:54 Search via REST API & JS Client 06:48:40 Algolia InstantSearch.js 07:00:35 Thank you and next steps
@Mauri6870 Жыл бұрын
Would you be able to number these timestamp sections to match with the branches that exist in the github repo?
@AbhishekVerma-fe3wo2 жыл бұрын
Man teaching 7 Hrs Django Rest framework tutorial without any Rest, impressive!
@CodingEntrepreneurs2 жыл бұрын
Ha. What parent gets sleep? Not this one 😂
@UsedYourName2 жыл бұрын
lol he’s the goat I love this mf on god
@mrcruz11072 жыл бұрын
Seriously though. was there a single cut/edit in this vid?
@siorno6 ай бұрын
@@mrcruz1107 every single time he put a title on the screen, and from the way he spoke it sounded like multiple videos spliced together
@PieterPienaar-r3jАй бұрын
This is perhaps one of the best tutorials I have ever watched! Most people online (especially in paid courses) like telling you to type what they tell you, and then it works, but you never UNDERSTAND what you're actually doing. You - on the other hand - break things down to the core and then build a solution up slowly, just to then show that the shortcut that everyone uses does exactly that in the backend. You slowly modify the scenario until the documented way of doing things makes sense since it now makes sense what the packages actually do when you call them. It is a FANTASTIC method of teaching coding. Honestly, I've sat with the documentation, Stack Overflow and ChatGPT and struggled for weeks... so many lightbulbs turned on when I watched this video. You are an incredible teacher!
@CodingEntrepreneursАй бұрын
Thank you for making my day!
@phrk172 жыл бұрын
I just wanted to let you know, that this tutorial was probably one of the biggest reasons I got a job offer as a backend developer. I really like your in depth approach showing all the mechanisms happening in the background. Thank you!
@CodingEntrepreneurs2 жыл бұрын
That’s amazing! Thank you for sharing. Also, good for you for doing the work. Keep it up!
@aryanjain5535 Жыл бұрын
me when
@cyberpirate0077 ай бұрын
Yea Same here!!! Got an Internship offer and dudes one of the reason. Gratitude ❤️
@maazshaikh79056 ай бұрын
can you please explain the roadmap you followed for django and the projects.
@emoji46525 күн бұрын
i have just started and followed 10 minutes till now but i have to stop and say that i have learnt a lot by now .. thanks for providing this classy content without charges :->
@niklasburghardt42922 жыл бұрын
I just want to say thank you. I'm currently building out a own project, that requires a heavy backend framework and this really gave me a comprehensive understanding of the topic (not only drf but APIs and Backends in general). It's amazing that this stuff is on the internet for free. Keep up the brilliant work.
@CodingEntrepreneurs2 жыл бұрын
Thank you!!
@pavanprakash30302 жыл бұрын
@@CodingEntrepreneurs great
@mohammedhassan-kx2yf2 жыл бұрын
justin, the content you give us for free is just too good to be true, i just opened youtube at work and i couldn't be much happier, just the tutorial i wanted to dig deeper and learn more. thank you.
@CodingEntrepreneurs2 жыл бұрын
Thank you! Your joy brings me joy.
@zwelinux98612 жыл бұрын
it's been a long journey that your channel raised up my career life with python and django stuffs. i can't even describe how thankful your support is. your channel made a person to a good developer . Thank You So Much. Hope you well and happy. Have a Good Day
@tlixio2 жыл бұрын
Literally got a job because of you and your tutorials, that twitter app, blog app and all the other projects. thanks.
@CodingEntrepreneurs2 жыл бұрын
I’m glad my tutorials helped, but you still did the work. Good for you. Cheers!
@henrystone31702 жыл бұрын
This tutorial is gold, I'm very new to this but the way it is being explained is very good. The style of showing the hard way and showing the more practical way helps you understand the value of the already created frameworks.
@parthokr2 жыл бұрын
I remember I started watching this video and had to pause for my exam. Then I started again a day before and must admit this entire video is very well thought out. Thank you CFE.
@yashkharche86612 жыл бұрын
Sir.... You had NO IDEA on how close I was to buy a Udemy course on REST Framework!!! Absolute Timing!!! Thank You Sir!!
@kamilszczepanik95792 жыл бұрын
Was it worth it? I mean wouldn't it be better to buy a good one on udemy?
@sahilkumar-zp7zv2 жыл бұрын
@@kamilszczepanik9579 This is a good one
@worldtechnology56512 жыл бұрын
Woooow! whatever I do can’t pay for your work, Really thank you. I was looking for Rest tutorial for a while and non was good, then suddenly saw your tutorial 😍 you don’t know how much I am happy and confident when see a tutorial from you.
@AnjaliSharma-lq8ut Жыл бұрын
Watching your video was the best decision I've made after suffering from not getting a low level perspective of how APIs work
@CodingEntrepreneurs Жыл бұрын
You made my day. Thank you
@r125l611 ай бұрын
Dear Justin, I wanted to take a moment to express my sincere gratitude for the amazing tutorial series you've created on Django Rest Framework. Your efforts and clear explanations have made the learning process incredibly smooth for me. Not only have you taught Django Framework effectively, but your insights into Django Rest Framework have been invaluable. Your dedication to teaching shines through, and I truly appreciate the effort you've put into creating such high-quality content. As someone eager to delve into professional Django development, I'm convinced of the importance of solid guidance for production-level work. Hence, I would like to extend my heartfelt thanks and best wishes to you. Your tutorials have laid a strong foundation for many of us, and I'm sure I speak for many when I say that your expertise is highly valued. If it's not too much to ask, could you perhaps consider creating a guide or series focused on best practices for Django Rest Framework in a professional setting? Topics such as Django user authentication, deployment and other industry best practices would be immensely helpful. Once again, thank you for your outstanding work, and I eagerly await any further insights you may share. Best regards, Rasel Rana Bangladesh
@CodingEntrepreneurs11 ай бұрын
Thank you for this! You made my day. Who else wants to see authentication with DRF?
@r125l611 ай бұрын
You're welcome, Justin! Your tutorials have truly made a difference for many of us. Keep up the amazing work!@@CodingEntrepreneurs
@SophiaRatri11 ай бұрын
@@CodingEntrepreneursThank you for your dedication to teaching Python and Django, Sir. Your consideration for addressing production challenges, particularly in authentication with Django Rest Framework, is highly appreciated. I earnestly urge you to create a tutorial focusing on production-ready DRF authentication, including custom user implementation and other crucial aspects. Your guidance in this area would be invaluable, and I'm certain many of us would benefit greatly from following your recommended path while implementing these solutions.
@JustinaNockreck11 ай бұрын
@@CodingEntrepreneursAbsolutely, Justin! Count me in for a deep dive into DRF authentication-it's exactly what I've been eager to learn. Thanks for your outstanding tutorials ❤
@Oliviya__00711 ай бұрын
@@CodingEntrepreneursCertainly, Justin! I'm eagerly awaiting your tutorial on DRF authentication-it's a topic I'm highly interested in.
@konradwysokinski8063 Жыл бұрын
Thank you so much for this course. Just found a job while transitioning from flask to django. You deserve all the best!!!
@สุภาพรสามงามเอี่ยม2 жыл бұрын
I swear when it comes to Django related content This guy definitely is the first one I think of Thank you so so much for putting in the time and explained very clearly Love and support
@grandpaghost7712 күн бұрын
Dude your style of teaching is great 👍
@tsyf1 Жыл бұрын
As I get more experienced as a developer, it gets harder to find content beyond the simplest of CRUDs for some technologies and a lot of tImes I end up just reading the documentation. I really like your approach here. It seems like you're trying to show as many DRF's features as possible while making them useful so that we can remember them and use them as needed, while trying to keep the quality one would expect on a production environment, and it works. Your video helped me a lot. Thank you.
@sunnyhaider45085 ай бұрын
I've been searching for a month for another good tutorial like this on KZbin for DRF, but I couldn't find it, to be very honest. This man is amazing!!!!
@ezraezeiru20822 жыл бұрын
This is amazing, 7hrs of free, sought after content. Thank you! Love the way he teaches with so much confidence. I hope to be like him someday 🙏🏽
@jcoder89652 жыл бұрын
Thanks very much for creating this course! I'm around 30 minutes in and loving it so far. I'm actually a .NET REST API Developer at a large tech firm and I'm really enjoying learning more about Python and the Django REST Framework. This is a great course to shore up my fundamentals and strengthen my ability as an API Dev.
@soroushmehraban Жыл бұрын
This is by far one of the best tutorials I have ever seen. Thank you so much!
@viktorojems2 жыл бұрын
I have to come back after over 3 hrs into this video to drop this comment. Thank you for taking your time to make such a great content. The video is lit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 🔥🔥🔥🔥🔥
@giannifed2 жыл бұрын
The best tutorial I've ever seen about DRF. Thank you.
@Just4Pro13 ай бұрын
I have finally completed this project after a month of hard work! I'm looking forward to implementing it into my main project. Thank you for video, and a thanks to myself for getting it done!
@yashadesara40862 жыл бұрын
This is the thing that we want from you about Django... Now everything about framework is on your channel 🤘
@bekeecodes2 жыл бұрын
Best drf course on KZbin so far... Thank you so much.
@mohammedfareedh2 жыл бұрын
A long long awaited tutorial, Thank you justin bro
@mahmoodrezaei8641 Жыл бұрын
you are the best fast talking and telling whats really important great job dude
@anthonyful2 жыл бұрын
Just finished Try Django today after 30 Days of Python. Very excited for this.
@codavecodes1 Жыл бұрын
teaching rest_framework without rest, GOAT🎉🎉 I'm subscribing
@pratyushbehere35802 жыл бұрын
Great timing, I was going to search for DRF tutorials. Love your tutorials
@CodingEntrepreneurs2 жыл бұрын
Thank you
@returnZeroo7 ай бұрын
this is extremely comprehensive course, more than premium than almost of the premium course available out there.
@CodingEntrepreneurs7 ай бұрын
Thank you!
@felipemediavillalevinson733711 ай бұрын
I was really feeling overwhelmed trying to learn Django for an idea of a app startup I had. Went through the official Django docs and some half finished udemy courses, but didn't really grasp the concepts. I was about to give up, until I saw this tutorial and Dennis Ivy's "DRF Oversimplified". Now I understand how things work BIG THANK YOU
@CodingEntrepreneurs11 ай бұрын
Way to stick with it!
@frederickah888 ай бұрын
I'm new to Django Can I just learn DRF without learning Django? Or should i need to learn Django first and comeback to this video?
@mmcuser7 ай бұрын
@@frederickah88 I would learn some django before. Is what Is did. I was not an expert but I could run a simple app. its easier this way, as this tutorial is really dense and fast (which I like)
@geliyang64952 жыл бұрын
Absolutely amazing tutorial about Django rest framework. I am 1 and a half hours into it. Loved it!
@CodingEntrepreneurs2 жыл бұрын
Thank you! Glad you’re enjoying it.
@ahmed-samer Жыл бұрын
MAAAN, this course is awesomly awesome (completed it). The topics & the explanation are well put together, thanks for this course. Love from Egypt
@el-hech288928 күн бұрын
again after 2 years i m hear to see things man thank you so much
@eagleofsharm2 жыл бұрын
Frankly Can't find better content that only focuses on Django. Great as always Justin, Material is gold as always. Thanks
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@sdvogo1520 Жыл бұрын
the best django course for beginners I've ever seen
@dronecekim5 ай бұрын
This is absolutely fantastic! I got udemy courses, this is way beyond. This 7 hour course is equivalent to 25 hours in udemy. Thank you for your effort and amazing content!
@AlexanderVoloshin-pf1px20 күн бұрын
Yeah, I mean, Thank you man for your work, it's like the best drf tutorial ever existed
@arek94302 жыл бұрын
This guy is incredible specialist, he knows what he is doing. Thanks I learned a lot, some tasks were too much for me, but still It was great.
@codexperience79512 жыл бұрын
sir, you''re a life saver, I am looking for a course of latest drf for the past weeks and just saw this, thank you sir!
@seasides987 ай бұрын
Until now is the best Django tutorial and I tried a bunch from udemy and youtube. I want to thank you a lot!
@mody53702 жыл бұрын
Really amazing explanation. This was very helpful, especially when you do things in the hard way and then say how to do it much easier with another technique. This is really help in understanding how things work. Thank you very much.
@yohz73242 жыл бұрын
I usually never comment a video but I'd like to praise your work as it deserved to be ! Thanks for this awesome content. If we can support you in anyway, let us know !
@mahmudsajib86482 жыл бұрын
Best Django Teacher in the Universe.
@CodingEntrepreneurs2 жыл бұрын
Wow! So nice of you to say.
@mahmudsajib86482 жыл бұрын
@@CodingEntrepreneurs I am grateful to you. Hope will meet you one day ❤️
@ridwanray18 күн бұрын
Thank you always, Justin. Your content are top-notch. Coming from a video creator like you.
@vaibhav555922 жыл бұрын
I can't express in words....all I can say is thank you so much
@CodingEntrepreneurs2 жыл бұрын
Thank you for watching
@saveuyghurmuslims23542 жыл бұрын
I LOVE THE WAY UR DISPLAYING ALL THE ERROR TO MAKE THINGS BETTER FOR US, THANKS YOU AND LOVE YOU AND GOD BLESS YOU.
@CodingEntrepreneurs2 жыл бұрын
Thank you!!!
@Merryler2 жыл бұрын
Your tutorials are super valuable! Thanks for helping me understand what my colleagues do :)
@infohub37092 жыл бұрын
Before now, I never knew I could pass instance method as one of the serializers fields. Thanks a lot Justin.
@gpl-o3i Жыл бұрын
Este es el curso más claro y mejor explicado de DRF que he encontrado. Excelente tutorial, muy completo
@pgallovich2 жыл бұрын
More amazing content to help me become a better Django developer! I am super excited to go through this! Thanks so much Justin!
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@shivamalk.k497111 ай бұрын
the content is very very good but the thumbnail is fire🔥🔥
@johnnyesquivel96222 жыл бұрын
Thanks!
@VinayakGNair2 жыл бұрын
Man, you are awesome at teaching django. Superb.
@shubhamjani25092 жыл бұрын
i can't thank enough for these tutorials, they are really helpful.
@marcoortiz11072 жыл бұрын
This is amazing!!! Thank you for taking the time to teach such valuable topics. Not only this one but your entire Django series. Much love from Costa Rica!
@brahimboughanem2082 жыл бұрын
Oh my good this is was unexpected I think the whole document are here Really thank you
@PROgrammingBOT8 күн бұрын
thank you soo much , 2h done, (day-1) 4h done (day-2) 6h done (day-3)
@kartheekravula42742 жыл бұрын
Good channel following from past 5years on words. 👍
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@MuhammadAli-01 Жыл бұрын
I really like it. I like the serializers part, I didn't get it at first from the documentaion. Thanks for the amazing demonstration.
@razkingademola3403 Жыл бұрын
man tnk u so much for creating because it really teaches me a lot about drf api and some other part of django that i am lacking, loved it so much, i am done with the vid
@dominicvacchiano2 жыл бұрын
Fantastic vid as usual 👍
@matiyo21242 жыл бұрын
The best django youtube channel 💪💪🔥🔥🔥
@sandeshdhakal68746 ай бұрын
Though this is going over my head but i found this video the best one for drf across youtube, Anyway stumbling and learning seems interesting.
@darbhasailu2 жыл бұрын
You’ve given me hope … you’re my Aragorn , the ranger from the north … ☺️thank you for the gift 🎁
@bartekludniewski98882 жыл бұрын
Brilliant tutorial! Waiting for more about other frameworks like FastAPI :D
@jcurwen31 Жыл бұрын
Thank you so much for this crash course, the best i ever seen
@stanissamisco39492 жыл бұрын
This is absolutely amazing, dude. First of all, one of the few courses that actually jumps into the important stuff right away. And on top of that, better material than in most top rated Udemy courses. Not having an option to financially support this, is a crime. Just saying
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@skyhappy2 жыл бұрын
@@CodingEntrepreneurs You gonna have an option for us to donate? Why do you make these videos?
@eledorusso Жыл бұрын
amazing tutorial, I was having a hard time finding something as good as this
@GidzPaul Жыл бұрын
Wow this is so thorough!
@hovopetrosyan16552 жыл бұрын
OMG. Justin. This all is for free. Thank you very very much.GOD BLESS YOU!!!
@eradboiАй бұрын
I always reference this video to understand drf more. Thanks for this timeless video.
@pawelleniart36862 жыл бұрын
you really make the best tutorials
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@DIN_A82 жыл бұрын
Just started learning Django and i love u guys!
@CodingEntrepreneurs2 жыл бұрын
We love you too
@mohsin55632 жыл бұрын
Thankyou sooooooooo much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! was waiting so long for this :))))))))))))))))
@micypac Жыл бұрын
Yo I like this tutorial, appreciate you really dive in and be thorough with all the moving parts of Django and Rest framework and not just making an app like all the other video does!
@rodraxsan77642 жыл бұрын
Awsome course so much information, it took me 3 weeks, I learned a lot....thank you so much.....greetings from South America :)
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@aleksandarpetrovic26322 жыл бұрын
Great tutorial lots of useful stuff much more than in some paid courses. The only drawback is the exposure speed, too fast for me, but I set the playback speed to 0.5 and now it's great :)
@mahmudulhassan90432 жыл бұрын
Thank you very much i have learnt so many things from your channel . Lover from Bangladesh
@mudworld092 жыл бұрын
Waao, i had complete the tutorial, very well and clear explained, all examples work as expected. Thank you a lot!!!
@teshaych26182 жыл бұрын
Honestly, You are a helping hand! God Bless You!
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@labarrett1002 жыл бұрын
Yes! So glad to see a new video :D
@realdanielpeach2 жыл бұрын
A Django Rest Tutorial…? It covers a variety of topics..?! It was made on Feb 11th, just a month ago?! It’s completely free on KZbin???!!!!! Buy this man a coffee!
@FitnessChaos2 жыл бұрын
Top Course on Rest Framework. So much value
@sibilvaz3 ай бұрын
Thanks a lot for explaining actually every thing, i think the way u are teaching by telling why we should use this or that is amazing and the best way to learn thanks dude
@AgustinAstronomy2 жыл бұрын
Thank you so much for this, I am learning and having fun doing it watching you, amazing!!
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@sheikhtahamaroof84849 ай бұрын
Thank you so much, Justin, for making this video. I really liked your teaching style - covering multiple coding strategies, and the in-depth explanation is just phenomenal. The course structure was very mature, and I never felt like I was wasting my time watching this video, unlike most of the coding tutorials. The main problem with most of the videos is that they generally target beginners with minimal and starter coding practices, but this video was seriously different. Now, if anybody asks me for Django, Python, or API resources, I am simply recommending this channel. Also, one thing that I missed was the testing part. Can you please add a module for testing the back-end? I learnt DRF for building back-end for my multi-modal AI app which consists of computer vision and RAG. I will share the github link as well as the working app's link ASAP. Also, I was inspired by Delphic - A package for building end-to-end RAG apps. Delphic is discontinued right now and I am looking forward to create my own package for the task.
@CodingEntrepreneurs9 ай бұрын
Thank you. That means a lot. Definitely need to cover testing! Who else wants this?!
@muhammadnouman77488 ай бұрын
@@CodingEntrepreneurs I want this
@AliAliOxenFree Жыл бұрын
new to your channel, i wish this tutorial opened with "try django 3.2" rather than mentioning it an hour in. i'll go watch that and then come back here. Great tutorial though, earned a sub!
@johndavies7292 жыл бұрын
I followed the Echo GET Data section exactly, but my server only prints b'' when I try to print the request.body. When I use a different client/API testing tool, the body is printed just fine - what is going wrong?
@ShouryaRohilla2 жыл бұрын
Hey, I faced the same error, try copying the local host url that he has put in the end point in basic.py. For me all I had to do was to add / at the end of the url.
@johndavies7292 жыл бұрын
@@ShouryaRohilla Thank you so much!!!
@Gvistic2 жыл бұрын
@@ShouryaRohilla thanks
@MichaelShingo Жыл бұрын
YES IT WORKS
@pwed5462 жыл бұрын
Thank you so much for the way this is all presented, taking the time to build up the use cases and adding complexity slowly in a way that flows. Other django/react projects I've tried to follow just throw out the end product as if its obvious why anything is the way it is
@lautarocolazo49382 жыл бұрын
Incredibly valuable! Keep up the good work!
@ronnysetiawan56472 жыл бұрын
this is sooo good.. i'm interested more about the tutorial.. 🥳
@matinbhdrn37782 жыл бұрын
Love your courses, Thanks for your comprehensive knowledge on topics.
@MaziarHeidari-i4e5 ай бұрын
see dude, your course is really nice and deep , i have watched about 5 hours and i have coded setp set with you , but i think i should check out other courses and be back again to your course , afterall thanks
@mostafarezaie92672 жыл бұрын
wow it is a fantastic course on DRF, it solved lots of my ambiguities and clear them out for me , I learned a lot from you thanks about that
@angeloliver28252 жыл бұрын
Great work. 3:41:05 I thing also you can use custom update in serializer to prevent update field you dont want updated.