Django Rest Framework Series - Permissions and Custom Permissions - Part-2

preview_player
Показать описание
Hello, and welcome to the second tutorial in this Django Rest Framework Series. In the following series of tutorials we will go through the Django Rest Framework and in addition build a React application to consume our Django Rest API. In this tutorial we review Django Rest Framework permissions applying to the project level, view and object level. We then go ahead and build a custom permission which then leads us to testing our new permissions.

🎉More from this Django Rest Framework Series:

🐱‍🏍Introduction
00:00 Series overview and tutorial breakdown
🐱‍🏍Permissions
02:51 Project level permissions
07:04 Create new user & apply Django object permissions
10:36 View level permissions
14:26 Activating user login URLs for the APIview
19:15 Mapping User Permissions to HTTP Requests
20:47 Creating a custom permission
🐱‍🏍Testing
31:15 Testing the custom permission

Code Repository:

👍SUBSCRIBE to get more free tutorials, courses and code snippets!

👍👍Follow us on Facebook

👍👍👍Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

i have gone throught so many youtube tutorials, videos but never got understand in depth how rest is actually works and landed here now everything is crystal clear

anand_dudi
Автор

A pure Gold content, A solid series in youtube not only in using the framework but understanding entire web development.

adahal
Автор

This was so beautifully explained! Your voice is so soothing and reassuring. Thanks for posting!

alpstinger
Автор

so far, so good, rarely found a video tuto, which explain the step by step like this, thx again ...

mateusjunior
Автор

Better than many paid django-rest courses....Keep it up...your channel is definitely gonna grow.

mostafarafid
Автор

I will comment just so youtube improve it algorithm
high-quality content here

tarassavchenko
Автор

A beautiful series (all the series in the channel) with great content well presented and organized with a lot of effort, congratulations

mohammedezzi
Автор

Dope. That was really really helpful
Wish me luck while I update my project to use DRF

FreeDomSy-nkue
Автор

You are the best ..Zender.. ! Thank you so much..!

felixfigueroa
Автор

Amazing tutorial, great to focus on writing tests right from the start, here's your comment for the algorithm :)

MrKeepItTrill
Автор

Amazing explanation, specially testing part!

abdelhamidrobaa
Автор

Thank you so much. This is exactly what I needed, your lectures help me a lot especially the testing part

punch
Автор

very helpful video sir thanks for making this series

abhikb
Автор

Amazing content! I do have a question for you. How would you set the custom permissions if for example a User belongs to a company and there are several companies with several users and you want to only return the data belong to a specific company depending on the user that's logged in! Kind of like a dashboard shared between several companies.
Would you request something like user.company (from the user model) and filter the query object? I apologize if my question doesn't make any sense. Thanks

anshuldubey
Автор

Thank you bruh .
keep up
dont loose your motivation
god blesses you

elonmusk
Автор

Django Rest Framework tutorial marathon lets goooo

whichdude
Автор

What is the point of extending PostUserWritePermission in PostDetail class? Why should View class be extended from Permission? You already used composition by setting permission_classes Tuple.

KatuninPavel
Автор

Nicely done, logical flow of information and examples.

TheBodybuildingG
Автор

your tutorials are the best!! could you make an tutorial how to make I like button in both sides django and react?

diegobraga
Автор

Awesome in-depth videos with theory good work👍👍pls keep this going...

samjoel