Django Groups and Permissions | Database Schema Explanation | Function and Class-Based Views
HTML-код
- Опубликовано: 18 сен 2024
- If you want to learn about Django groups and permissions and use them effectively in your Django Application then this video is a one-step solution for you.
In this video, we will cover -
* What are groups and permissions and when to use them
* Their application in Django admin panel
* is_staff vs is_superuser explained
* Full Database schema explanation of groups and permissions
* How permissions are linked to database models using contentype
* How ManyToMany field works in Django
* Applications of groups and permissions
* How to give permissions to staff members for securing django admin dashboard
* Implementation using function-based and class-based views to create a group, add a user to a group, check group. Then how to allocate permission to a user, restricting views for users having certain permissions.
* User authorization to access view or not and thus adding a security layer to our views
* Making custom decorators and mixins.
* Using default permissions.
* How to create custom model-dependent and model-independent permissions.
✔Link For Full Playlist of Mastering Django - • Mastering Django
👉 One-click to reach The Revolutionary Course 🚀 : • The Revolutionary Course
If you like the video do give it a thumbs up 👍 and share with your friends
✅ Do subscribe to my channel "Priyanshu Gupta" for more skill development and point to point videos 💖
I am trying to cover all problems faced by a developer as the material available on the internet is scattered and difficult to find...... I am trying to bring that all together which can be used effectively for fast and efficient productivity and skill enhancement
Social Links -
📸 Instagram - / priyanshu._gupta
💻 Discord: / discord
✈ Telegram: t.me/priyanshu...
✔Link for Full Playlist of AWS Tutorials - • AWS Tutorials
✔Link for Full Playlist of Security Analysis and Networking - • Security Analysis: Imp...
#django #groups #permissions
🛑 Links For Other Exclusive Content👇💯-
🔥Mastering Django Roadmap: www.letsprogressify.com/roadmaps/93f13210-efd8-4663-ad7e-ed0b70fad7f7/preview
🚀 The Revolutionary Course - ruclips.net/p/PLLz6Bi1mIXhEE3NEaLz3xNn7JHBHNb34I
👉 How to create multiple user types - ruclips.net/video/ZU5yBZja8yE/видео.html
👉 User Registration, Login, and Signup (like Amazon) - ruclips.net/video/zecETlA00OA/видео.html
👉 Django Microservices and how to handle multiple user types on different architectures - ruclips.net/video/X6fXTsioRl0/видео.html
👉 Adding filtering, pagination & sorting & adding a search bar (with a Rest API) - ruclips.net/video/uwWmvGDHS-8/видео.html
Thank you very much for such great Django lessons!
Please create a new Django playlist or tutorial teaching us the following:
How to implement a user groups management like in the army grades (soldier, captain, lieutenant, governor and so on) each of them with different rights in general and over the other users (like banning permanent, temporary, blocking others rights, editing or viewing their own posts or the others and so on).
Second, it must be a like system for posts and for comments to that posts. The like system is somehow like the one from Facebook but not the same. It should be one just for voting up, one for voting down, one for spam, one for hate, and one for coins.
Some categories of users are able to make posts that can be viewed only if the other categories of users give a number of coins while voting that article else they can't read it.
Only some categories of users can vote down (e.g. those that have enough number of coins).
Any user can convert a given number of votes up (e.g. 100) into coins.
Users are automatically upgraded or downgraded from one category to another according on the totally number of coins they have.
Down votes are discounted from the up votes and if there are not any more up votes then coins are converted back into up votes and after that they are discounted because of down votes and that user category downgraded accordingly. If there aren't any coins anymore then that users records negative points and those are discounted while they receive up votes.
Any user can be also banned for a period of time (shorter or longer) if they reach any given number of negative points.
If any user post reach any given number of spam votes for their post or comment then that post or comment is moved to a hidden spam folder for being deleted by a higher category of users like moderators or admin or to be marked as not spam. Also after any given number of posts or comments marked as spam that user can be banned temporary or permanently.
The same for hate except that the post should not be deleted because it is not spam.
Any given category of users are able to give any amount of votes.
e.g. soldier or beginner just one, higher categories are able to give higher number of votes of any kind and so on.
Please do this in Django. Please.
Thank you so much in advance!
This is an amazing video thank you so much for all of the detail. I’ve been searching all over the django docs and stackoverflow for days, and this is the only video I’ve found that really makes sense of how to implement groups properly. Thanks a lot!
The most detailed video on permissions in django. Congratulations. I wish all the videos were in English
Thankyou so much for making this video. I am a new django intern in a company. This video helped me a lot to understand the project.
Thats great!!
You are an angel, thank you very much
Great work, Great explanation,Must watch video to learn about groups&permissions in & out
Best video in depth so far regarding Django Groups and Permissions
Bhot shi explain kr rhe ho
Thanks bhai ....... do share with your friends who are working on django development or want to learn django webdevelopment ........ this series will definitely help them because all these topic that I am covering are not covered or explained in such depth in any course available even paid ones ........All what I have learned is by digging deep into django’s structure and by manually performing all testcases
Thank You for explaining beautifully and depth information.
Actually its a very good video, wished the rest of your other videos was in english as well. Thank you
Thank you. Will make rest videos in english as well. If you have custom user model and using AbstractBaseUser then inherit PermissionsMixin class as well.(check my user model in code)
Excellent explanation. Very much appreciate your hard work.
Good work bro ....really helpful sessions u r providing free of cost ....
Thank you
Thanks for this wonderful knowledge transfer and great explanation😊
Thanks a lot 😊
best tutorial for permissions and groups
Thanks ✌️
Great tutorial I have ever watched. Keep it up.
The best so far
good job. thanks from Pakistan
Great job dude... very helpful
great work..... kindly make more of these videos......
Sure
Amazing , thank you for amazing video.
amazing tutorial! thnak you !
Hi you doing well. As per this video You told like CMS, where a teacher group can add student and admin group can add teacher and student both and student only can see his profile then how I'll give permission to them?
Love the video, keep up the good work
Great job bhai
Nice tutorial bro :)
hi priyanshu , you have really made these things so easy i appreciate your work very much...
i have a question , why does media file gets stored in the file folder not in data base , how do we store media files in the production level ????
Media files itself cant be stored in database, only the link where they are stored will get stored in db, for handling media files in production you will have to use s3 bucket or have to store them directly in server.
Checkout these videos for help - ruclips.net/video/jFFAGdBtrRc/видео.html
Amazing explanations 👌👌 Thanks a lot.
tq for doing this in english sir
Got it 👌
need more videos in django
Hey Priyanshu Gupta, You did mention that the code repo will be provided for this specific video, but i am not able to find the code link, can you please help me with it.
I wanted to view the model structure here for user_groups and user_permissions , the intermediary tables for users, permissions and groups.
Thanks in advance.
Hi,
This is from Bangladesh. This is really great!!!!!
Can you suggest me for the below question?
"How can I assign permissions to a specific group from a custom template?"
Just pass the group id from frontend and assign permission to it in backend
But I want to use frontend here also...
thanks again for this amazing tutorial. bro can u put the link of the repo please...
GitHub repo: github.com/priyanshu2015/MasteringDjango
Perfect, 👍🏻👍🏻. I want to see the whole project code, can you please share this project git URL.
Thanks and link for GitHub repo: github.com/priyanshu2015/MasteringDjango
Do you have any tutorial on putting django on production using IIS.
Hi Priyanshu, one aspect is missing. "Edit your own record". Not every record on a permitted model!
Please make full coding video
i humblely request to add a sub-title in english or make the video in english
Will do it very soon!
Bhai ek video Django channels pr BNA
how can i give permission to admin when i created a custom admin panel
could you let the github link for the explain project code
can you provide the github source code link
github.com/priyanshu2015/MasteringDjango
Without admin site how to set permission
could you add subtitles pls?
can you please share this code
Can we get the github link?
22nd video..
source code bhi put kardeta
bro github link