Group permissions are an efficient way to assign permissions to a number of users rather than on an individual basis. In this video, learn how to leverage per-group permissions to allow groups of users to access, modify, and delete data.
- Using django Guardian, you can split … read write modification, delete permissions … into different roles groups. … To make sure groups were correctly, you have to create … them in a data migration, … we're going to be creating two groups. … First we need to get the model from the auth app. … And then we need to actually create the group. … And the first one is for account manager. … And the second one is the customer's support group. … This will be run as part of the data migration here. … And then to actually assign the permissions … we need to go into apps. … And we need to use the post migrate signal. … And whenever the data migration is run, … we're going to be making sure … that we set up the group permissions. … So the groups are created, and then we're going to be assigning … the permissions using a small utility function, … which is based on django guardians assign perm function. … And for the accounts manager, they will have permission … to change a package and view a package …
Skill Level Advanced
Building a Paid Membership Site with Djangowith Nick Walter1h 15m Intermediate
OWASP Top 10: #7 XSS and #8 Insecure Deserializationwith Caroline Wong26m 31s Intermediate
Building RESTful Web APIs with Djangowith Rudolf Olah1h 9m Intermediate
1. Permissions, Access Controls, Activity Logs
2. Throttling a Flood of Requests
3. Protecting Data and Data Privacy
4. 2FA: Two-Factor Authentication
5. CSRF: Cross-Site Request Forgery Protection
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.