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 https://github.com/PSU-OIT-ARC/django-perms.

Project details


Download files

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

Source Distribution

django-perms-1.3.0.tar.gz (14.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page