Join my free course on building a Todo API with Django REST Framework: prettyprinted.com/djangotodoapi
@islamimankhodzhaev5433 жыл бұрын
Wow, you are golden spring for django learners.
@rajat15484 жыл бұрын
Thank you so much sir, you are insane in teaching and making things really simplified.
@nareshk74814 жыл бұрын
No words to say about Explanation. Really Great video, thanks for proving this much valuable videos for us.
@bpospanov5 жыл бұрын
GOD. You are a freaking genius. Respect from Kazakhstan
@anthonysilva44064 жыл бұрын
You are the man. Thanks for the video, really helpful
@TeppopucT6 жыл бұрын
I love You! My English is not very good, but your order of telling about any technology is excellent! I understand all of your videos. Thx very much! Good luck!
@prettyprinted6 жыл бұрын
You're welcome! Thanks for watching.
@kadrogo6015 жыл бұрын
You are my GOD!! thank you for your amazing lectures!
@ajborbzzz4 жыл бұрын
This video really helps me a lot in understanding Django Rest Permissions. Thank you
@spatialnasir2 жыл бұрын
Thanks for the explanation.
@Aaam1rK6 жыл бұрын
Really nice explanations of DRF. Hoping to see a complete comprehensive series (perhaps paid?) that covers advanced DRF concepts from you!
@prettyprinted6 жыл бұрын
I'll definitely consider it.
@grijeshmnit5 жыл бұрын
Very helpful tutorial. Thanks
@hassanibrahim87325 жыл бұрын
Great video. I’d love for you to make a video on how to use Django REST with ReactJS and how to configure both their routers with each other.
@davidmutua69715 жыл бұрын
I came accross your django rest_framework videos on youtube as I found myself in need to expose some of my models as END POINTS and be able to use AJAX and to Prefill Dropdowns along with JavaScript Events on my UI. I believed this could solve my needs explained above when you posted on Postman and it worked. Did the same but on Insomnia and voila!!! The only issue is that I am using django rest_framework 3.10.1 and it doesn't work with HyperlinkedModelSerializer. Instead it throws an ImproperlyConfigured Exceptions. Thank You Sir. Tony.
@prettyprinted5 жыл бұрын
You're welcome! Thanks for watching!
@mdk1245 жыл бұрын
Thank you for making this series of videos man. How should I proceed if I want to use my own custom users to login instead of the model provided by Django? Is there a video I can look at?
@jorgedavalos56634 жыл бұрын
Hello there! great tutorials. would you do the authentication one eventually?
@estebanmejia99895 жыл бұрын
thanks, it helped me a lot
@0xcoder5424 жыл бұрын
Excellent work! Great videos you have created for Django and Python. I have a quick question here for you is regarding the permissions in Django Rest Framework API. The login credentials that you used for the demo where does it comes from? Can I just use the login that I created in Django admin site? Your response is much appreciated. Thanks in advanced.
@ekbergpeter69874 жыл бұрын
Is it possible to give permissions depending on what is set in admin for users? Do You have any tutorial on this. I like the way you explain things here.
@ikhsanabdillah56624 жыл бұрын
how to get csrf token ? when i use in frontend, i get some error like this Forbidden (CSRF token missing or incorrect.): /api-auth/login/ [22/Apr/2020 21:44:47] "POST /api-auth/login/?next=/api/ HTTP/1.1" 403 2513
@sairampanguluri8885 жыл бұрын
Can you explain in detail about list of models like foreignkey, types of serializers, types of viewsets and their function like what did they actually do?
@kiranp454 жыл бұрын
Hello, in my case log-in is not going to enable, i do follow all steps done by you. kindly help me. thanks in advance.♥
@BeLKa44446 жыл бұрын
Thank you SO much for this video! Really. Thanks.
@prettyprinted6 жыл бұрын
You're welcome! Thanks for watching.
@orlandog19793 жыл бұрын
Thanks bro....
@satishkurakula3 жыл бұрын
Hi I need a small help from you, by using the rest APIs can I only restrict the user to edit and only the admin user to add or delete the users in the user list.
@xtremehackerzpro95116 жыл бұрын
Please cover JWT also :)
@cvcarter9296 жыл бұрын
This is a nice tutorial! Thanks! Are you planning to do one on object-level permissions?
@prettyprinted6 жыл бұрын
Possibly. If I do a more complete series on DRF on my website, then I'll cover object-level permissions.
@serhii.chumachenko6 жыл бұрын
Nice job! Thanks!
@VIJENDRASINGH-zg2lp4 жыл бұрын
Hi Anthony, I'm using Email instead of Username for user registration. When i try to login using Email and Password, it just doesn't . Can you please guide?
@Mostaqmahmud6 жыл бұрын
Thanks man. I want to know about the group based permission which you mentioned in the end of video. It's very emergency for me now for my current project. Can you please make a video asap(if possible) or can give me any reference ?
@prettyprinted6 жыл бұрын
I don't plan on making a video on it anytime soon, but here are the docs: www.django-rest-framework.org/api-guide/authentication/
@ryan.aquino4 жыл бұрын
Hi , have you found any solution on this? django rest framework docs seems to be complex to implement
@trung76685 жыл бұрын
Do you have the code for that somewhere?
@stanleyjohn46705 жыл бұрын
When it comes to logging in the credentials before viewing the JSON data, can only an *admin* user log in and view the data or can a random logged in user see/edit it as well? Example, if I was an admin user, I can see the JSON data. That's guaranteed. But what about a user named 'Rick'?. If Rick logs in using a normal login within a template, can he view and edit the api as well if he has access to it?
@prettyprinted5 жыл бұрын
It doesn't have to be an admin user. You can have two approaches: allow anyone who is logged in to see all the data. Or you can make it to where only the creator can see their data. This tutorial might help: www.django-rest-framework.org/tutorial/4-authentication-and-permissions/
@mohi7solanki6 жыл бұрын
Please cover social authentication in DRF if possible.
@prettyprinted6 жыл бұрын
Social authentication doesn't make sense with the API. Could you tell me more about what exactly you want to see?
@nurizzati58925 жыл бұрын
@@prettyprinted it's possible to connect with social network? for example validate user credentials in twitter using django ?
@prettyprinted5 жыл бұрын
@@nurizzati5892 Yes, look into the all auth library.
@rajshreesome32755 жыл бұрын
I am using the JWT for authentication but can we save this tokens in db?
@prettyprinted5 жыл бұрын
The client could save the token to the database, yes. It doesn't make sense for the server to save the token.
@ZeroShrimpy6 жыл бұрын
are you planning to do React tutorials in future??
@prettyprinted6 жыл бұрын
Yeah, I'll cover React eventually.
@hassanibrahim87325 жыл бұрын
@@prettyprinted I’d love it if you could make a video on how to use Django (REST) with ReactJS and how to configure both their routers with each other.
@MS-ph2ol3 жыл бұрын
You rock!
@louiejohnseno18105 жыл бұрын
thanks man !
@prettyprinted5 жыл бұрын
You're welcome!
@romko7755 жыл бұрын
Hey, how to make only readOnly permission, I want that users can make only get requests?
Sir how to apply token on headers :, to make our android app working login it only generate token
@nurizzati58925 жыл бұрын
thank you
@prettyprinted5 жыл бұрын
You're welcome!
@abdulmueez2676 жыл бұрын
is there a place where i can download the source code?
@prettyprinted6 жыл бұрын
Email me at anthony@prettyprinted.com and I'll send it to you.
@snowbord13k6 жыл бұрын
There is some problem with permissions in views.py. I repeated everything, but it said that there some type error. I spend 1 hour to fix it, but not successful. But when I used that in global settings, everything was working. Thanks for the lessons!:)
@prettyprinted6 жыл бұрын
Glad you figured it out.
@ThaEzioAuditore6 жыл бұрын
Completely unrelated but I wanted to ask you this : did you study at MIT ? I'm currently going through 6.006 and during one the recitations I think I heard your voice. Would be cool if you did !
@prettyprinted6 жыл бұрын
My high school grades weren't good enough for MIT. :\
@nguyenhung81956 жыл бұрын
Pretty Printed How to specify permissions per method when using class based views.
@mafirus5 жыл бұрын
Where is the repo of this tutorial???
@prettyprinted5 жыл бұрын
There isn't one because the code is simple. I still have the code though, so if you want it you can email me at anthony@prettyprinted.com
@nikhilbhardwaj60556 жыл бұрын
amazing
@prettyprinted6 жыл бұрын
Thanks for watching!
@tabmax222 жыл бұрын
yeah but now the frontend can't make post requests
@TheArtheanos4 жыл бұрын
Damn, I've always thought you were white because of your voice