Skip to main content

A role-based access control(RBAC) practice via Django.

Project description

A role-based access control(RBAC) practice via Django.

Quick start

  1. Add “rbac” to your INSTALLED_APPS setting like this:

  2. Add AUTH_USER_MODEL setting with “rbac.User” like this:

    AUTH_USER_MODEL = 'rbac.User'
  3. Run python migrate to create the rbac models. (MUST after step3)

  4. Start the development server and visit to check rbac models (you’ll need the Admin app enabled).

Known issues

  1. Execute migrate operator still create “auth_group” table in the database.

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-auth-rbac, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_auth_rbac-0.0.1-py3-none-any.whl (9.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-auth-rbac-0.0.1.tar.gz (7.1 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