Syntactic sugar for handling permission functions in views, templates, and code
django-perms provides a simple way to add authorization checks to Django views. It takes a different approach to authorization compared to packages like django-guardian. django-perms doesn’t store any permission state in the database. Instead, you define functions that return True or False depending on whether the user is authorized to do something. You are free to implement these functions however you see fit. This allows for coarse permissions such as user.is_staff and more fine-grained permissions based on, e.g., whether a user has access to a specific model instance.
For more information and examples, see https://github.com/PSU-OIT-ARC/django-perms.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-perms-1.3.0.tar.gz (14.6 kB)||File type Source||Python version None||Upload date||Hashes View|