-
Notifications
You must be signed in to change notification settings - Fork 182
Installation
Natán edited this page Oct 19, 2017
·
3 revisions
-
Install Django Easy Audit by running
pip install django-easy-audit
.Alternatively, you can download the latest release from GitHub, unzip it, and place the folder 'easyaudit' in the root of your project.
-
Add 'easyaudit' to your
INSTALLED_APPS
like this:
INSTALLED_APPS = [
...
'easyaudit',
]
- Add Easy Audit's middleware to your
MIDDLEWARE
(orMIDDLEWARE_CLASSES
) setting like this:
MIDDLEWARE = (
...
'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
)
-
Run
python manage.py migrate easyaudit
to create the app's models. -
That's it! Now every CRUD event on your whole project will be registered in the audit models, which you will be able to query from the Django admin app. Additionally, this app will also log all authentication events and all URLs requested.