Skip to main content

Syntactic sugar for handling permission functions in views, templates, and code

Project description

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-perms, version 1.3.0
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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page