Installation and Set UpΒΆ

There are no special steps to set up django_prbac beyond those for any Django app.

The first step is to install the Python package via pip or easy_install:

$ pip install django-prbac

Then add django_prbac to the INSTALLED_APPS in your settings module (this will be for default projects):

# in

Finally, set up the database tables via syncdb:

$ python syncdb

If you are using South, then this will not actually do anything, but will prompt you to run the migrations:

$ python migrate django_prbac

If you wish, you can run the tests to check the health of your installation. This will not modify any of your data:

$ python test django_prbac --settings django_prbac.mock_settings