You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-django-guardian-2.4.0-1.lbn36.noarch

python3-django-guardian-2.4.0-1.lbn36.noarch

Package Attributes
RPM  python3-django-guardian-2.4.0-1.lbn36.noarch.rpm Architecture  noarch Size  700582 Created  2022/11/22 13:22:57 UTC
Package Specification
Summary Implementation of per object permissions for Django.
Group Application/Internet
License ZPL
Home Page https://pypi.org/project/django-guardian
Description

django-guardian is an implementation of per object permissions [1] on top of Djangos authorization backend

Documentation Online documentation is available at https:/django-guardian.readthedocs.io/.

Requirements

Python 3.5+ A supported version of Django (currently 2.2+)

GitHub Actions run tests against Django versions 2.2, 3.0, 3.1, 3.2, and main.

Installation To install django-guardian simply run: pip install django-guardian

Configuration We need to hook django-guardian into our project.

Put guardian into your INSTALLED_APPS at settings module:

INSTALLED_APPS = ( ... guardian, )

Add extra authorization backend to your settings.py:

AUTHENTICATION_BACKENDS = ( django.contrib.auth.backends.ModelBackend, # default guardian.backends.ObjectPermissionBackend, )

Create guardian database tables by running: python manage.py migrate

Usage After installation and project hooks we can finally use object permissions with Django. Lets start really quickly: >>> fro

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(FileDigests)  
Provides
python-django-guardian
python3-django-guardian
python3.10-django-guardian
python3.10dist(django-guardian)
python3dist(django-guardian)
Obsoletes
python-django-guardian

Document Actions