Installing Bridgekeeper

First, install the bridgekeeper package from PyPI.

$ pip install bridgekeeper
# or, if you're using pipenv
$ pipenv install bridgekeeper

Then, add Bridgekeeper to your settings.py:

 INSTALLED_APPS = (
     'django.contrib.admin',
     'django.contrib.auth',
     # ...
+    'bridgekeeper',
 )

 # ...

 AUTHENTICATION_BACKENDS = (
     'django.contrib.auth.backends.ModelBackend',
+    'bridgekeeper.backends.RulePermissionBackend',
 )

Note

Order doesn’t matter for either the INSTALLED_APPS or AUTHENTICATION_BACKENDS entry.

You might not already have the AUTHENTICATION_BACKENDS setting in your settings.py; if not, you’ll have to add it.