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!
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
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.
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
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.
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!
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!
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.
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
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
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.
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!
@@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.
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
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.
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!
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).
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.
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.
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?
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.
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.
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
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!
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.
You can support me on Patreon
www.patreon.com/parwizforogh
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!
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
This the Best API tutorial I watched. Everyone just writes the code and you cant understand a shit out of it
yeah sure he is so damn good
very amazing
Traceback (most recent call last):
File "", line 1, in
NameError: name 'ArticleSerializers' is not defined
struck at this error please help
@@aliijaz7551 did u migrate it ?
got it, I didn't import serializer model
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.
I like this apporach too, because you go deeper into how things work.
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
Thank you very much for your review.
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.
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
So proud watching and learning via an afghan instructor. Tashakur watandar
خواهش است
The Best Tutorial ever, i can go along now with DRF documentation and make the most of it.
Traceback (most recent call last):
File "", line 1, in
NameError: name 'ArticleSerializers' is not defined
struck at this error please help
This is by far the best Django REST API tutorial I've ever seen. Thank you for your great work sir!
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.
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!
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!
This is awesome. If anyone's in doubt, watch this whole thing, start to finish, no distractions.
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.
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
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
Those Freudian slips don't really determine someone's level, I can 100% assure you slips like this happen to everyone.
Thumbs up for referring to the documentation always. Kinda cool that this is the first channel I found using documentation in development.
Very clean and straight point , thanks from india.
watch at x1.5 speed , it save time
You are the best man, I'm native in english but I understood everything even. Thank you so much
*Honestly speaking, This is the best Django REST API tutorial*
This video helps me to write my diploma project. This is the best tutorial for beginners I ever saw. Thank you!
Thank you so much for this in depth tutorial on DRF. One of the best on the internet
@Paritosh Jadhav kon aahes re tu jhattu ??
You're so calm explaining, i really liked and enjoyed. Gived me some view about certain things i do not understanding before. Tks!
I've never seen a great tutorial like this. I feel like re-watching this. Thanks Parwiz.
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.
Wonderful.Simple and easy to understand.Was breaking my head to understand the REST
28:40 I have never seen any tutorial on Django got to so much depth . Thank you
The best Django REST framework ever ! It is exactly what beginners need!. Thank You so much Parwiz !
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
Really best lectures from basic to advance level in Rest API. I never seen kind of lectures in very easy way.
One of best videos for django, Nailed it. Thank you.
There are so many ways for single thing. Which is owesome
Best tutorial for Django REST out there. Thank you.
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!
Traceback (most recent call last):
File "", line 1, in
NameError: name 'ArticleSerializers' is not defined
struck at this error please help
@@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.
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
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.
I agree 100%, did you learn more about this? if yes, can you help me out? Thanks!
You got the treasure that everybody didn't see. Fixing the bug will improve your basics.
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!
Best tutorial I’ve seen so far I have downloaded this video and preparing when required in interviews thanks
The best material about Django Rest Framework
It is just awesome. I was really struggling since few weeks. But after watching it I am damn confident man!!!!!
You are amazing... This tutorial is awesome... Thank you Parwiz Forogh... 👌
beautiful work bro.. never knew the DRF i dodged for two years could be learnt in two days with practical
Thanks bro. Btw those who disliked these are just wordpress designers acting like developers
دمت گرم پرویز جان، واقعا جواب داد. خیلی باحالی. ایشالله چنلت بشه 2 میلیون فالور !!
تشکر زنده باشی
Really its a best RESTApi tutorial. Thanks man....
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)
Now i m Django rest documentation away to become master in API's
Thanks Brother ; }
This is the Best Django Framework Tutorial ever. Thanks a lot
Thank you so much for such an amazing course! The way you explained it all even in POSTMAN is really great! Thank you again!
This is the greatest tutorial ever! Thank you so much 😊
Thanks, much Parviz! Clear explanation and the best videos I have ever seen.
I recently started django , i was stuck at rest api, this video was quite useful. Thanks for sharing your knowledge
The best tutorial ever!! Thank you so much, you explain complex concepts in such an easy way to follow.
you the best ever man !!! this is simply the bestt video i've ever seen about rest framework. Everything perfectly understood
Thank you for the tutorial. I appreciate your help!! It made clear some of the details I was missing.
awesome video learn the django framework
API concept from the scratch ........
Great course to clear the basics of DRF
This is the ultimate tutorial for beginners ❤❤
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).
Best video we could get for beginner. Thanks a lot..!
Sir you are explained in a very easy ..thanks a lot.
You are awesome bro. I learnt Django Rest API Framework in a very easy manner. This is bcz of your tutorial. Keep it up bro.
You are most welcome
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.
Hey, Parwiz. I want to say you "GREAT THANKS". Your courses are really helpful! You talk about all cases which i need to know!
I really appreciate that you had posted a video like this. It's really useful.
If your django fundamentals are clear than its the best strat for django rest framework
Very Good Tutorial for the rest-framework.
I reqlly enjoyed the tutorial
Good Job
man u deserve more than 1 like
Ever best Turorial...the way you explained tremendous thank you..
Able to understand properly after this video! Thanks
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.
Best Tutorial about Django REST API on RUclips, I watched this thrice in last week & it really helped me, Thanks a lot bro
#LoveFromIndia
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?
such a nice course. this is very useful for me. Thank You sir, you are explain everything in this session.
What a tutorial.Very descriptive.Thank you very much for the tutorial.Have learnt a lot
Excellent video. The sequence of topics was good and you are a very good instructor... Thanks and you have a new subscriber!
Thank you so much Parwiz for this tutorial. I learned a lot from this tutorial. This tutorial has made me subscribe to your channel.
you are my gold....love u man.....
I like how the explanations are simple and clear. Great work.
very awesome video , I learn a LOT from your tutorial , thanx
Thanks a lot for this video. I think this is the best video on Django rest API !
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.
Thank you so much for elaborating in a simple way drf
Thank you so much .I cleared my all api-related issues with the help of this tutorial .
Again Thank you.
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.
Finally content I was looking for! Thanks a lot!
You are my best tutor Parwiz
Awesome tutorial. I got better understanding after watching this.
This is such an amazing tutorial. Easy even for a complete beginner to follow.
Will it covers all topics?
Thanks for your course, For start and familiar with DRF it's very nice course.
Glad it was helpful!
Sir Please upload this course on udemy because this is very good explained every concept. Every beginners developer need this info.
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.
the best explanation for the django rest framework
👏🏻👏🏻 I tried taking course on udemy ,I couldn't get the concept
You're video helped me do
Ever best api tutorial on django good job bro...keep posting
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
thank you bro, this really saved my ass at work. I subscribe
Thank you so much for your best effort. Love you man.
Hey bro thank u for this amazing video, I got lots of useful information from your video, thank you very much
Just Wow.. Such a nice well managed tutorial
Glad you liked it
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!
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.
A tutorial in django REst franework with all type of relationships, one to one, one to many and many to many will be awesome, thanks again