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:

    INSTALLED_APPS = [
        ...
        'rbac',
    ]
    
  2. Add AUTH_USER_MODEL setting with “rbac.User” like this:

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

  4. Start the development server and visit http://127.0.0.1:8000/admin/ 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


Release history Release notifications

This version

0.0.1

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 hashes
Filename, size django-auth-rbac-0.0.1.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page