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
@mrcruz1107 Жыл бұрын
Seriously though. was there a single cut/edit in this vid?
@siorno2 ай бұрын
@@mrcruz1107 every single time he put a title on the screen, and from the way he spoke it sounded like multiple videos spliced together
@phrk17 Жыл бұрын
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!
@CodingEntrepreneurs Жыл бұрын
That’s amazing! Thank you for sharing. Also, good for you for doing the work. Keep it up!
@aryanjain5535 Жыл бұрын
me when
@cyberpirate0073 ай бұрын
Yea Same here!!! Got an Internship offer and dudes one of the reason. Gratitude ❤️
@maazshaikh79052 ай бұрын
can you please explain the roadmap you followed for django and the projects.
@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.
@henrystone3170 Жыл бұрын
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.
@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
@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 🙏🏽
@สุภาพรสามงามเอี่ยม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
@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.
@konradwysokinski80638 ай бұрын
Thank you so much for this course. Just found a job while transitioning from flask to django. You deserve all the best!!!
@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.
@r125l67 ай бұрын
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
@CodingEntrepreneurs7 ай бұрын
Thank you for this! You made my day. Who else wants to see authentication with DRF?
@r125l67 ай бұрын
You're welcome, Justin! Your tutorials have truly made a difference for many of us. Keep up the amazing work!@@CodingEntrepreneurs
@SophiaRatri7 ай бұрын
@@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.
@JustinaNockreck7 ай бұрын
@@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__0077 ай бұрын
@@CodingEntrepreneursCertainly, Justin! I'm eagerly awaiting your tutorial on DRF authentication-it's a topic I'm highly interested in.
@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
@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.
@sunnyhaider4508Ай бұрын
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!!!!
@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!
@soroushmehraban Жыл бұрын
This is by far one of the best tutorials I have ever seen. Thank you so much!
@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.
@giannifed2 жыл бұрын
The best tutorial I've ever seen about DRF. Thank you.
@geliyang6495 Жыл бұрын
Absolutely amazing tutorial about Django rest framework. I am 1 and a half hours into it. Loved it!
@CodingEntrepreneurs Жыл бұрын
Thank you! Glad you’re enjoying it.
@cdcm Жыл бұрын
Este es el curso más claro y mejor explicado de DRF que he encontrado. Excelente tutorial, muy completo
@felipemediavillalevinson73377 ай бұрын
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
@CodingEntrepreneurs7 ай бұрын
Way to stick with it!
@frederickah884 ай бұрын
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?
@mmcuser4 ай бұрын
@@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)
@pratyushbehere35802 жыл бұрын
Great timing, I was going to search for DRF tutorials. Love your tutorials
@CodingEntrepreneurs2 жыл бұрын
Thank you
@victorbekee5822 жыл бұрын
Best drf course on KZbin so far... Thank you so much.
@yashadesara40862 жыл бұрын
This is the thing that we want from you about Django... Now everything about framework is on your channel 🤘
@codavecodes1 Жыл бұрын
teaching rest_framework without rest, GOAT🎉🎉 I'm subscribing
@viktoraka41902 жыл бұрын
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 🔥🔥🔥🔥🔥
@ahmed-samer11 ай бұрын
MAAAN, this course is awesomly awesome (completed it). The topics & the explanation are well put together, thanks for this course. Love from Egypt
@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!
@returnZeroo3 ай бұрын
this is extremely comprehensive course, more than premium than almost of the premium course available out there.
@CodingEntrepreneurs3 ай бұрын
Thank you!
@arek9430 Жыл бұрын
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!
@Merryler2 жыл бұрын
Your tutorials are super valuable! Thanks for helping me understand what my colleagues do :)
@seasides983 ай бұрын
Until now is the best Django tutorial and I tried a bunch from udemy and youtube. I want to thank you a lot!
@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!!!
@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
@dronecekim2 ай бұрын
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!
@infohub3709 Жыл бұрын
Before now, I never knew I could pass instance method as one of the serializers fields. Thanks a lot Justin.
@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 :)
@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.
@RadosławHryniewicki4 ай бұрын
This tutorial is very helpful for both novices and even experienced developers! Great tutorial, but there were a few moments where you sped up your writing and speaking, which may confuse the listener :D Hopefully YT allows us to pause or rewind video
@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
@vaibhav555922 жыл бұрын
I can't express in words....all I can say is thank you so much
@CodingEntrepreneurs2 жыл бұрын
Thank you for watching
@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!
@sandeshdhakal68743 ай бұрын
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.
@VinayakGNair2 жыл бұрын
Man, you are awesome at teaching django. Superb.
@shubhamjani2509 Жыл бұрын
i can't thank enough for these tutorials, they are really helpful.
@teshaych26182 жыл бұрын
Honestly, You are a helping hand! God Bless You!
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@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
@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
@sdvogo1520 Жыл бұрын
the best django course for beginners I've ever seen
@AgustinAstronomy Жыл бұрын
Thank you so much for this, I am learning and having fun doing it watching you, amazing!!
@CodingEntrepreneurs Жыл бұрын
Thank you!
@kartheekravula42742 жыл бұрын
Good channel following from past 5years on words. 👍
@CodingEntrepreneurs2 жыл бұрын
Thank you!
@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 ❤️
@mudworld092 жыл бұрын
Waao, i had complete the tutorial, very well and clear explained, all examples work as expected. Thank you a lot!!!
@DIN_A82 жыл бұрын
Just started learning Django and i love u guys!
@CodingEntrepreneurs2 жыл бұрын
We love you too
@dominicvacchiano2 жыл бұрын
Fantastic vid as usual 👍
@brahimboughanem2082 жыл бұрын
Oh my good this is was unexpected I think the whole document are here Really thank you
@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?
@AkshayKaushik2 жыл бұрын
Awesome mentor, how did you spend 7 hours explaining the rest framework? You are the reason why I started programming 7 years ago.
@jcurwen319 ай бұрын
Thank you so much for this crash course, the best i ever seen
@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
@ForWork-mj9fv6 күн бұрын
Thank you so much for this amazing series sir GOD bless you. 🙏
@darbhasailu2 жыл бұрын
You’ve given me hope … you’re my Aragorn , the ranger from the north … ☺️thank you for the gift 🎁
@mahmudulhassan90432 жыл бұрын
Thank you very much i have learnt so many things from your channel . Lover from Bangladesh
@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!
@bartekludniewski98882 жыл бұрын
Brilliant tutorial! Waiting for more about other frameworks like FastAPI :D
@sagartamang00006 ай бұрын
Django is indeed complicated.. Thank you so much for this tutorial though, I am really thankful for it...
@hovopetrosyan16552 жыл бұрын
OMG. Justin. This all is for free. Thank you very very much.GOD BLESS YOU!!!
@pranith_pashikanti6 ай бұрын
Thanks, for simplifying the process of learning API Development in Django.
@MaziarHeidari-i4eАй бұрын
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
@FitnessChaos2 жыл бұрын
Top Course on Rest Framework. So much value
@rizqimultazam7228 Жыл бұрын
Thank you so much for your video. Your video is helping me a lot in understanding Django, especially DRF. I hope you always have amazing days!
@koroshsun20094 ай бұрын
some parts you work really fast!
@lautarocolazo49382 жыл бұрын
Incredibly valuable! Keep up the good work!
@GidzPaul Жыл бұрын
Wow this is so thorough!
@matiyo21242 жыл бұрын
The best django youtube channel 💪💪🔥🔥🔥
@dorianc33032 жыл бұрын
Such a good tutorial! Thanks for the work! The only part I'am missing is: How to save foreign keys or m2m via API and how about saving images via DRF. Would be awesome if you have some best practices links to do it? Or maybe you feel like doing another tutorial? Would be awesome :)
@eledorusso8 ай бұрын
amazing tutorial, I was having a hard time finding something as good as this
@angeloliver28252 жыл бұрын
Great work. 3:41:05 I thing also you can use custom update in serializer to prevent update field you dont want updated.
@aloudiakite12172 жыл бұрын
Excellent content, please we would like to see this kind of video on Flask as well
@CodingEntrepreneurs2 жыл бұрын
Cool. Anyone else want this?
@vasudevareddy67492 жыл бұрын
Great to have this video on Flask as well :)
@stammeringprogrammer75352 жыл бұрын
Your absolutely awesome, you made this stuffs easy, I recommends this video to new viewer, It worth watching
@eternalwanderer81662 жыл бұрын
Thank you so much! I am gonna invest next two days on it.
@CodingEntrepreneurs2 жыл бұрын
That’s what I’m talking about! Let’s do this
@sheikhtahamaroof84846 ай бұрын
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.
@CodingEntrepreneurs5 ай бұрын
Thank you. That means a lot. Definitely need to cover testing! Who else wants this?!
@muhammadnouman77484 ай бұрын
@@CodingEntrepreneurs I want this
@teohoyos2 жыл бұрын
Thank you for your time. I appreciate it.
@shivamalk.k49717 ай бұрын
the content is very very good but the thumbnail is fire🔥🔥
@othmanemansouri36312 жыл бұрын
Thank you, really appreciate this course
@mohsin55632 жыл бұрын
Thankyou sooooooooo much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! was waiting so long for this :))))))))))))))))
@ronnysetiawan5647 Жыл бұрын
this is sooo good.. i'm interested more about the tutorial.. 🥳
@harshjayantdiwase7160 Жыл бұрын
this tutorial is going over my head
@jonl316 Жыл бұрын
Thanks for this tutorial, this has so much great information.
@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!
@finn92332 жыл бұрын
super helpful insight, thank you alot for the course.
@adityaUser200 Жыл бұрын
thanks a lot for this tutorial, this is very helpful & i am very happy ! Easy to learn because it has its own branch per section ^^ :)
@anle40562 жыл бұрын
That's amazing. I'm really appriciate with your work.
@commandermalek6100 Жыл бұрын
Thank you for posting amazing content like this, all explained , best practices and the best instructor in the internet please keep doing more of this amazing work.
@sunderrajan61729 ай бұрын
Great video! Thanks. Wondering how are you zooming in on screen?