Skip to main content

Flexible per-object authorization backend for Django

Project description

django-rulez is a fork of django-rules, since some of the goals django-rules set themselves didn’t match our current project goals.You can refer to their github project page for more information about this cool project: https://github.com/maraujop/django-rules Kudos for the good work guys!

Generally, it is a per-object authorization backend, that stores the rules themselves as methods on model.

Installation

From source

To install django-rulez from source:

git clone https://github.com/cglass/django-rulez/ django-rulez
cd django-rulez
python setup.py install

From Pypi

Coming soon!

Configuration

  • Add it to the list of INSTALLED_APPS in your settings.py

  • Add the django-rulez authorization backend to the list of AUTHENTICATION_BACKENDS in settings.py:

    AUTHENTICATION_BACKENDS = {
        'django.contrib.auth.backends.ModelBackend', # Django's default auth backend
        'django_rules.backends.ObjectPermissionBackend',
    }

Rules

Examples

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-rulez-0.1.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file django-rulez-0.1.tar.gz.

File metadata

  • Download URL: django-rulez-0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-rulez-0.1.tar.gz
Algorithm Hash digest
SHA256 a2bfd2e7137ec23157c612fe0d4e86dd59d9d5584fb6ed21813b325b00e78748
MD5 484197bbfca48f63d74d367d7e1838f8
BLAKE2b-256 4b3aeb142c37bfdaed7f2810b81cba5df582be4973d358072f28327a500c89db

See more details on using hashes here.

Provenance

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