You can support me on Patreon www.patreon.com/parwizforogh
@PepeTostado3 жыл бұрын
Hello, quick question. When you change to generic views, why when I go to /article/ the list of articles is not showing. The only thing that is being shown is /article/ What can I do to show all articles there? Thanks!
@Sonu16402 жыл бұрын
Hey buddy , i need help here at 1:04:32 . I tried to GET the response but this is how its showing for me { "title": "", "author": "", "email": "" } im basically getting empty fields
@adityagoyal95604 жыл бұрын
This the Best API tutorial I watched. Everyone just writes the code and you cant understand a shit out of it
@tabedenisdeon71764 жыл бұрын
yeah sure he is so damn good
@canorofficial75093 жыл бұрын
very amazing
@aliijaz75513 жыл бұрын
Traceback (most recent call last): File "", line 1, in NameError: name 'ArticleSerializers' is not defined struck at this error please help
@biswajitsahoo14563 жыл бұрын
@@aliijaz7551 did u migrate it ?
@aliijaz75513 жыл бұрын
got it, I didn't import serializer model
@pedrofoss29133 жыл бұрын
i like how you start with the more complicated and messy code and finish with how you can compact dozens of lines of code into 3 lines just to show how powerful django really is.
@arek6296 Жыл бұрын
I like this apporach too, because you go deeper into how things work.
@muraddurjoy34184 жыл бұрын
Honestly speaking, This is the best Django REST API tutorial I found. I was searching and checking, but many of theme uses the previous project and implement on it. But this is the very beginning of REST API, and every line you make me understand obvious. Go ahead and best of luck... Satisfied
@skanda21863 жыл бұрын
Thank you very much for your review.
@joshuaenyi-christopher74184 жыл бұрын
You posted this video just when I needed it so badly. Thanks a lot. You have also taught me to read documentations like this without pain.
@sakthieswaran89983 жыл бұрын
Bro in the authentication part I'm getting an error as '. authentic() must be overridden'.. Can you please tell me what mistake I've done
@HariKrishna-qh5zp4 жыл бұрын
The moment he removed admin from admins.py and was confused about what happened for a bit made be believed that he too might still be a beginner however I like to applaud his courage to come out and make an informative video like this. Thanks
@MAd3l4 жыл бұрын
Those Freudian slips don't really determine someone's level, I can 100% assure you slips like this happen to everyone.
@adnank74962 жыл бұрын
This is guy is so great. I mean literally He is Just Awesome. He is Explaining from the bottom level. I can't express my gratitude. Your a savior for everyone just like me.
@medoabdin4804 жыл бұрын
in the beginning, I was trouble a lot and confused from where can I start the DRF and when I started by docs I was disappointed because I confused for many idioms into it now it becomes easier for me to learn via doc. thanks a lot for this simple.
@sadaqatem2 жыл бұрын
So proud watching and learning via an afghan instructor. Tashakur watandar
@ParwizForogh2 жыл бұрын
خواهش است
@janricmalate67934 жыл бұрын
This is by far the best Django REST API tutorial I've ever seen. Thank you for your great work sir!
@hughqing26283 жыл бұрын
Very well done! I love this tutorial because it goes from the surface to the bottom. All codes are clear and understandable instead of being a black-box!
@Lunatyk0014 жыл бұрын
I was really confused at part 7. After watching, I am not sure what is role of GenericAPIView. It should replace our both previous classes: ArticleAPIView AND ArticleDetailsAPIView? When you started with this class, you didn't use into url - at this time part, GET and POST methods were working. Then you decided to create PUT and DELETE methods, it didn't work because ID wasn't there.After you fixing this (by changing URL), PUT and DELETE methods works. Additionally, we was able to GET object with given (in url) object ID... However method GET without ID (Which should show list of all articles) stopped work (address without cant be accessed). I tried to fix this by adding additional, second URL (which will catch requests without ID) - this "works" but the problem is that there are still visible DELETE and PUT methods which makes error if you use them (without ID inside URL). FInnally, this part is finished without fixing this problem.
@sakshamkapoor59054 жыл бұрын
I agree 100%, did you learn more about this? if yes, can you help me out? Thanks!
@apurvsingh55414 жыл бұрын
You got the treasure that everybody didn't see. Fixing the bug will improve your basics.
@allaboutcs3 жыл бұрын
Awesome tutorial, you have learned all the aspects so easily, I'm just wondering I have wasted a lot of time just on searching a good django rest framework tutorial. Thanks a lot
@tradewithtony4 жыл бұрын
The Best Tutorial ever, i can go along now with DRF documentation and make the most of it.
@aliijaz75513 жыл бұрын
Traceback (most recent call last): File "", line 1, in NameError: name 'ArticleSerializers' is not defined struck at this error please help
@aryanparekh35084 жыл бұрын
I am writing this comment for those who are looking into the comments and trying to figure if they should give their 2hrs and 20 mins into this or not....TRUST ME GUYS YOU SHOULD..the explanation is great... especially for those who have no idea how to start with Django Rest Framework...I would highly recommend watching this video
@yiyi-zr2to3 жыл бұрын
Best tutorial !! Super Clear and Understandable not like others who only give a little bit information then ask you to sign up for his class... Especially(Programming with Mxxh). Appreciate the effort!
@redonline8084 жыл бұрын
This is awesome. If anyone's in doubt, watch this whole thing, start to finish, no distractions.
@JustJiril4 жыл бұрын
Hello Parwiz, Thank you so much for making this video. This video made me clear about all types of views as well as REST framework. I really appreciate your hard work for making such videos as they are really helpful. Thanks again.
@thamiresschifinifroelich33534 жыл бұрын
You're so calm explaining, i really liked and enjoyed. Gived me some view about certain things i do not understanding before. Tks!
@iFFOKMedia4 жыл бұрын
I've never seen a great tutorial like this. I feel like re-watching this. Thanks Parwiz.
@swapnilharpale72444 жыл бұрын
Thank you so much for this in depth tutorial on DRF. One of the best on the internet
@AryanGNU4 жыл бұрын
@Paritosh Jadhav kon aahes re tu jhattu ??
@sazib292 жыл бұрын
*Honestly speaking, This is the best Django REST API tutorial*
@moin31943 жыл бұрын
Very clean and straight point , thanks from india. watch at x1.5 speed , it save time
@aotegaliyev3 жыл бұрын
1:24:31 U have to put try catch into get function and this gives u correct response instead of attribute error, but thank u for ur lesson great job)
@tharakaratnayake3 жыл бұрын
Thumbs up for referring to the documentation always. Kinda cool that this is the first channel I found using documentation in development.
@agirmani4 жыл бұрын
Hey, I just wanted to quickly point out for 1:18:00 the get_object() method you created is returning the HTTP response to the function and is not returned as a response to the client when the DoesNotExist error is raised. Can be easily fixed by an if statement and a None return from the get_object() method if no object is found. Great video helped me a lot!
@raik3034 жыл бұрын
Please give me the line of code you handled in if statement, i was trying the same, i could not handle the response in ClassBased Api views 1:18:00 , It still get AttributeError.
@emanuelalbuquerque90322 жыл бұрын
You are the best man, I'm native in english but I understood everything even. Thank you so much
@euguman3 жыл бұрын
This video helps me to write my diploma project. This is the best tutorial for beginners I ever saw. Thank you!
@ELVI3JO4 жыл бұрын
The best Django REST framework ever ! It is exactly what beginners need!. Thank You so much Parwiz !
@indraxios2 жыл бұрын
If your django fundamentals are clear than its the best strat for django rest framework
@ayotomiwasalau63733 жыл бұрын
Wow...awesome man...I went from zero in Django to solid foundational knowledge. Took me 10 hours tho, don't let the length of the video fool you, I had to make sure I codeed alongside and got the required output. Eitherways Nice!
@skanda21863 жыл бұрын
For those whos shell may close : from api_basic.models import Article from api_basic.serializers import ArticleSerializer from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser
@photoninadoubleslit84052 жыл бұрын
Thank you so much for such an amazing course! The way you explained it all even in POSTMAN is really great! Thank you again!
@AkashLondhe3 жыл бұрын
Sir Please upload this course on udemy because this is very good explained every concept. Every beginners developer need this info.
@piotrekferdynus80884 жыл бұрын
I usually don't comment on tutorial that I watch, but you've done really great job and I want you to know that I'm really appreciating this, thank you!
@aliijaz75513 жыл бұрын
Traceback (most recent call last): File "", line 1, in NameError: name 'ArticleSerializers' is not defined struck at this error please help
@piotrekferdynus80883 жыл бұрын
@@aliijaz7551 don't know in which exact moment the error is happening, but the name of the class is ArticleSerializer (without an 's'), so check your views.py file for that.
@kiplimocollins4 жыл бұрын
The best tutorial ever!! Thank you so much, you explain complex concepts in such an easy way to follow.
@shahriarhasanfahim88963 жыл бұрын
28:40 I have never seen any tutorial on Django got to so much depth . Thank you
@patrickknows22963 жыл бұрын
Thanks bro. Btw those who disliked these are just wordpress designers acting like developers
@reshmaavvaru95813 жыл бұрын
Amazing video for rest framework i used this video along with a udemy course which i through edunaut and i think now i totally mastered rest framework
@jan21514 жыл бұрын
This is the greatest tutorial ever! Thank you so much 😊
@jkinder84 жыл бұрын
Excellent video. The sequence of topics was good and you are a very good instructor... Thanks and you have a new subscriber!
@venkatesha27343 жыл бұрын
Hi Parwiz, I have gone through the video, it's simply amazing. Your teaching skills are more attractive. If you can build a ECommerce project using django restframework, it would be learn more for us. If you already worked on it, suggest me with that video. Thank you. Keep post more videos.
@shaikikbhalBasha4 жыл бұрын
I recently started django , i was stuck at rest api, this video was quite useful. Thanks for sharing your knowledge
@nikhilkulshrestha2134 жыл бұрын
Really best lectures from basic to advance level in Rest API. I never seen kind of lectures in very easy way.
@Brocollipy3 жыл бұрын
Excellent video really helpful. I'm using the REST framework for a couple of locations to trigger functions so the functions views was really helpful. Most videos go straight to model serializers with rest_framework class based views and it's hard to pick out the work flow for just a basic function + JSON response.
@Codaconda4 жыл бұрын
Hey, Parwiz. I want to say you "GREAT THANKS". Your courses are really helpful! You talk about all cases which i need to know!
@asdfghjkl369583 жыл бұрын
Thanks for the video, this was helpful. To make the tutorials even better, it would be great if you also explained why you would use each of the options, rather than just saying what they are. I'm still not sure when to use function based views, class based views, etc..
@malay59283 жыл бұрын
Now i m Django rest documentation away to become master in API's Thanks Brother ; }
@Adarsh87504 жыл бұрын
👏🏻👏🏻 I tried taking course on udemy ,I couldn't get the concept You're video helped me do
@PepeTostado3 жыл бұрын
Hello, quick question. When you change to generic views, why when I go to /article/ the list of articles is not showing. The only thing that is being shown is /article/ What can I do to show all articles there? Thanks!
@ganeshkumarnatarajan13754 жыл бұрын
Thanks for this tutorial. Good foundation starting from simple API Function view to class View to generic class view to view Set to Generic View set , and finally to Model View Set.
@mahmoudrezaizadiyar94254 жыл бұрын
دمت گرم پرویز جان، واقعا جواب داد. خیلی باحالی. ایشالله چنلت بشه 2 میلیون فالور !!
@ParwizForogh4 жыл бұрын
تشکر زنده باشی
@muhammedajmal1093 жыл бұрын
Genericview is not working as expected, i think we have to create separate class for getall and get by id. Or we have to add one more url
@mahmudurrahman81044 жыл бұрын
You did a very good job. I need to ask a question that you put request data in JSON parse (37 minutes) and is that really necessary to do so as we are serializing it after that operation ?
@joewilson273 жыл бұрын
So after all, one question, can you tell us where and when we are going to use this kind of DRF you explained here, for example, we can use Class Based API View for certain typical data/structure required, in otherhand we can use Viewsets And Routers for specific case. I hope you understand what I'm asking for. Thanks for making this awesome tutorial. Bravo...
@kalyanyallampally2 жыл бұрын
@Parwiz Hello Parwiz, Could you please add your response to it? I was having very similar question. Thank you very much for your efforts in putting this tutorial up.
@sudeepthpokkuluri16423 жыл бұрын
Best tutorial I’ve seen so far I have downloaded this video and preparing when required in interviews thanks
@adnanfarhan50063 жыл бұрын
It is just awesome. I was really struggling since few weeks. But after watching it I am damn confident man!!!!!
@vishnumohan17064 жыл бұрын
Hi Parwiz, Great tutorial for a beginner. I have a few questions, I seen people send the response for all API calls in a specific format. Eg: { "message": "Success", "data": {actual data}, "sessionValid": true, "otherparams": "value" } How we will send data in thsi format? Also, how in this video you shown accessing an article, providing the article id. But how we will provide multiple params like, id=2, author = "vishnu"?
@kalenzo784 жыл бұрын
thank you brother for this... I'm trying to form registration form data to adatabase
@CodeSwag4 жыл бұрын
Makadii henyu
@shivamdubey12684 жыл бұрын
Thank You man , In such a easy way you have covered pretty decent knowledge of Rest Framework, I have struggled over 2 month for the content like this (Y).
@sricharan47724 жыл бұрын
Wow Parwiz. That's a wonderful introduction to RestFramework. Really very informative and helpful. I got to know many new things in Django Rest Framework. Please keep continuing the work!!! And just FYI, I think there is no need for a new url to include id while using Viewsets and Routers. Rest of the video is awesome! Keep it up! And I wish u best of luck for ur future
@architadesai78764 жыл бұрын
Thank you so much! Very helpful tutorial and very well explained along with the documentation to make it smooth for us to go through the documentation ourselves.
@skanda21863 жыл бұрын
In 1:40:11, Getting all the articles via the _get_ method won't work (localhost:8000/generic/article/), here is how to fix it : Add this line to your urls.py of basic_api folder : path('generic/article/', views.GenericAPIView.as_view(), name="genericview") Overall, you should have *two* paths pointing to the *same* class based view, one that takes the id : path('generic/article/', views.GenericAPIView.as_view(), name="genericviewid"), And another that doesn't : path('generic/article/', views.GenericAPIView.as_view(), name="genericview"),
@abhilashs64043 жыл бұрын
Wonderful.Simple and easy to understand.Was breaking my head to understand the REST
@adalaw31293 жыл бұрын
Hello, may I ask under what circumstances should we use REST framework to handle api, instead of only using js?
@canorofficial75093 жыл бұрын
beautiful work bro.. never knew the DRF i dodged for two years could be learnt in two days with practical
@jonathankibazo95214 жыл бұрын
This is the Best Django Framework Tutorial ever. Thanks a lot
@AkashLondhe3 жыл бұрын
such a nice course. this is very useful for me. Thank You sir, you are explain everything in this session.
@divyanshrai41384 жыл бұрын
At 31:51, the representation of Serializer should not include the date and should include id as we didn't add it in serializers.py. It'll be like that if you restart the shell. (Just a minor correction, since it was glanced over and gave me trouble.)
@anka28083 жыл бұрын
I thought I made a mistake somewhere and I was watching video again and again to see, where I made a mistake!!!! Thanks for your comment! :)
@ryan.aquino4 жыл бұрын
I have a question. How do I know which method to use? Class base views / Function base views / Viewsets ? and why
@benfrese35734 жыл бұрын
From what I know you should use Class Based Views whenever something is so generic that the build in functionality is all you need, cause it leads to less code. Also for bigger projects this would be the way to go, cause they make sure you DRY (Don't Repeat Yourself). This comes with a price though: you have to extend the classes and they are harder to read (talking about bigger projects here where the build in fuctionality isn't enough). Function Based Views are easy to use, very flexible and the way to go when it would be too hard (or unreasonable) to work with Class Based Views. You can find a lot of material on the topic since it's a common question. Ultimately it comes down to experience, and your best bet is to use them both, and see where it gets you. Hope that helps a little bit.
@sudoers-workspace-here Жыл бұрын
One of best videos for django, Nailed it. Thank you.
@PatteeGreen2 жыл бұрын
Thank you for the tutorial. I appreciate your help!! It made clear some of the details I was missing.
@snehlatabharmoria26644 жыл бұрын
thanks for sharing this nicely explained rest api concept.. i have gone through so many videos but never able to get the concept. Thanks a lot.
@dac59613 жыл бұрын
Thank you so much Parwiz for this tutorial. I learned a lot from this tutorial. This tutorial has made me subscribe to your channel.
@keerthanamurugesan31292 жыл бұрын
There are so many ways for single thing. Which is owesome
@benjaminandoh85244 жыл бұрын
This is one of the best tutorials. good job Parwiz. I wish you could have explained some of the concepts in the views.
@craigmercury79164 жыл бұрын
Can i just give an advice ? You could use the django_extensions app to use shell_plus that makes all the imports for you(maybe you used it in one of your previous tutorials idk). Also wouldn't it be better to use a virtual enviroment to develop a django app ?
@dovakiin04 жыл бұрын
you the best ever man !!! this is simply the bestt video i've ever seen about rest framework. Everything perfectly understood
@priyaranjanmantri93323 жыл бұрын
You are amazing... This tutorial is awesome... Thank you Parwiz Forogh... 👌
@rahulthenft Жыл бұрын
I have watched more than 10 videos to study DJANGO REST FRAMEWORK including the paid one. But i have to tell that, this is the only video which give me a clear picture about it. Thankyou very much sir !
@gowthamsenthamilselvan60532 жыл бұрын
Thanks, much Parviz! Clear explanation and the best videos I have ever seen.
@nbits74333 жыл бұрын
Best tutorial for Django REST out there. Thank you.
@yarik83men513 жыл бұрын
The best material about Django Rest Framework
@danianiazi82293 жыл бұрын
Which view is best to create your Apis ? There are so many options
@vaibhavtripathi70243 жыл бұрын
awesome video learn the django framework API concept from the scratch ........
@samwelwafula73652 жыл бұрын
you did not test the GET request for an entire list while using mixins since it fails, or even POST, Only GET for a single item id works and updating(PUT)
@dandelion03313 жыл бұрын
at 39:53 you edited the api_basic urls.py because of an error. please show your editing of that urls.py
@ebkai_ChetanSureka3 жыл бұрын
@Parwiz Forogh I was following your authentication part using django rest framework, and I can't figure out why it isn't working for me. I wrote the exact same code as yours. Am I missing something?
@shivamdatta47594 жыл бұрын
Is crud included in Django rest framework or its something different I know that its create, retrieve, update, delete but i want to know whether it is included in it or i have to learn it from somewhere else
@CHANDANKUMAR-sj1vb3 жыл бұрын
Really its a best RESTApi tutorial. Thanks man....
@AryanGNU4 жыл бұрын
Best Tutorial about Django REST API on KZbin, I watched this thrice in last week & it really helped me, Thanks a lot bro #LoveFromIndia
@shivamdatta47594 жыл бұрын
Bhai maine Django course Code with Harry se kiya hai ab rest framework k liye kya kru samaj nhi aa rha maine video abhi tak nhi dekha pr batado ye complete hai? Aur kaisa hai?
@noobgamingtroll51714 жыл бұрын
At last! Not an Indian accent tutorial! Kidding aside...I'm an indian too! Hahaha
@eivindkopperud89794 жыл бұрын
Why do you need pk as a keyword argument at 2:01:48, for retrieve, update and destroy? Will there be a case where you're not given a pk as a argument?
@karanv2933 жыл бұрын
hey Parwiz great content man. I've been trying to find a good tutorial for djange Rest framework with the addition of Channels. that way we could use that in creating a chat app/notifications in our apps. know any where I can find that? i feel like i searched and still havent found that. it would be HUGE help for beginners getting started with websockets (channels).
@manaskumarsahoo78433 жыл бұрын
Thank you so much for elaborating in a simple way drf
@rakeshmali17274 жыл бұрын
why did you add create() and update() methods in serializer class? Isn't that handled by the model itself?
@umerehsan66772 жыл бұрын
Very Good Tutorial for the rest-framework. I reqlly enjoyed the tutorial Good Job
@SACHINAGARWAL164 жыл бұрын
Hi Parwiz, this tutorial is very good and helpful, can you also share more about nested serialization for POST data for one to many & many to one relationship. Thanks in advance!
@PepeTostado3 жыл бұрын
How can I deal with the data that an api gives. Example if I wanna store the data in a variable? Thanks!
@temurochilov3 жыл бұрын
Awesome content thank you very much. really straighforward. but sometimes explanations are missing. for example: 49:49 . It would be better if you explained why you are removing or adding some parameters etc.