User Role Based Permissions & Authentication | Django (3.0) Crash Course Tutorials (pt 15)

preview_player
Показать описание
Check out my Complete Django Course!

Adding user permissions to users and restricting pages based on user authentication levels with custom view decorators.

Рекомендации по теме
Комментарии
Автор

Someone : Do you have any Good Django book?
Me: yes, I have the best one book.this is dennis Ivy.
Just love you man!

sontustripura
Автор

I have completed a beginner Django course, where I've learned the basic CRUD functionalities along with REST API CRUD with Angular 2. But as I'm doing this course, I've realized I missed many little things that matter.

A big thanks to you, brother 💙 Love from Bangladesh.

tanjimashraf
Автор

I discovered you since you start your channel and follow you is the best investment I made.

You bring a lot of value with your expertise and put a lot of efforts to make clear explanation.

I hope you will continue to put content in the future.

Thank's for you work in this tutorial Dennis

ryan_
Автор

Hey, man I am doing my MS in Computer Science, and I would definitely say that things I have learnt from this channel is way more valuable than what I have learnt at school.
Thanks for sharing the knowledge.
Just one suggestion. It would be great if you can keep some exercise after the completion of the topics you cover in the video.

arthdave
Автор

u have my deep respect have seen about all the django lectures of youtube....none can be comparable with you...great work

pulkittiwari
Автор

Dude, you are simply great. Please do an In-depth DRF tutorial and combine it with React, as there are not many tutorials on DRF available.

ShivamSingh-bxlg
Автор

Hello Denny, I was searching for user login & login permission-based views in Django for a week until I landed on your tutorial. Tried a lot of tutorials, but not a single one covered things as profoundly as you did. Thanks a lot. Much love !

thexengengineer
Автор

Great Video!

One thing, for others that are watching, though. If you want to have multiple groups and your group, you are searching for,
happens to be on any other than the first place of the array you wont get the results you want.

Modifying the code as follows works for me:

def
def decorator(view_func):
def wrapper_func(request, *args, **kwargs):



group = None
if
for group in request.user.groups.all():

if group.name in allowed_roles:
return view_func(request, *args, **kwargs)



return HttpResponse('You are not authorized to view this page')
return wrapper_func
return decorator

deadnetworksdead
Автор

Your explanation, sir... are at on other level!

I would recommend this series to anyone who would like to learn about Django!

Thank you for reviving my love for this framework!

onlycomputershit
Автор

4:10 authentication check with python generator
10:02 authorization check with python nested generator
17:05 admin only authorization check

junecnol
Автор

I ususally don't coment on any video but watching this playlist I would say that you are GEM man. Much appriciate to your efforts.

muhammadukkasha
Автор

Previous tutorials were somehow easy but this one is a real pain. Have to watch and analyze couple of times.
BTW, i want to say tons of thanks for u for this amazing content!

doniyorabduvokhidov
Автор

One of the best tutorials I have ever seen. The clean and simple way of demonstration.

PGTechBar
Автор

You call it as a Django Crash course But its A really Corporate Level course . You are the best YouTuber ever in YouTube in context of Django tutorials.Thank you a lot For such powerful Content. Please upload more video on django advanced topics like djnago signals, Resst Framework and more

NepaliWhitehat
Автор

This app will work REALLY well if it's integrated into your e-commerce app as an admin/staff/management view

ShaunDePonte
Автор

you are jut amazing .. I tried to learn django last year . but no luck .. but this month I found you .. and everything just making sense and not hard at all.

jessjoshi
Автор

Dennis we REALLY appreciate all your hard work with these videos - we have gained SO much - thank you

UBLAunripped
Автор

Thank you for giving this . I searched but like this video there is no other video.good explained.

raparthipoornachanderrao
Автор

Your tutorial is awesome, it is really helping big time.. You almost taught entire Django for free !!!

bnessmind
Автор

All your projects are so great. Big thank from Mongolia

zoljargalenkhtaivan