Skip to main content

A simple lightweight role manager for Django REST framework.

Project description

drf_role is a small, simple and lightweight role manager who can manage READ/WRITE & NoAccess permissions for each role. It basically work with DRF internal system like permission class, object level permission, etc.

Detailed documentation is in the “docs” directory.

Quick start

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

    INSTALLED_APPS = [
        ...
        'drf_role',
    ]
  2. Include the polls URLconf in your project urls.py like this:

    url(r'^api/<YOUR VERSION NUMBER>/drf-role/', include('drf_role.urls')),
  3. Run python manage.py migrate to create the drf_role models.

  4. Start the development server and visit,

    http://127.0.0.1:8000/api/v1/roles/ http://127.0.0.1:8000/api/v1/permissions/ http://127.0.0.1:8000/api/v1/accesses/ http://127.0.0.1:8000/api/v1/all-urls/

Please look up on docs for details…

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

drf-role-1.0.0.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file drf-role-1.0.0.tar.gz.

File metadata

  • Download URL: drf-role-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for drf-role-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ea633e3c813d4c1d65b7b75db01c34e2f23da717aae51ba0604639588579e93a
MD5 b86f69887ab82107f8c8a2b9b7439b75
BLAKE2b-256 7902362e6c68882aba0219aa54db26d5e46e107b3923673c8cd7006eef3300ec

See more details on using hashes here.

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