Skip to content

Installation

Natán edited this page Oct 19, 2017 · 3 revisions
  1. 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.

  2. Add 'easyaudit' to your INSTALLED_APPS like this:

INSTALLED_APPS = [
    ...
    'easyaudit',
]
  1. Add Easy Audit's middleware to your MIDDLEWARE (or MIDDLEWARE_CLASSES) setting like this:
MIDDLEWARE = (
    ...
    'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
)
  1. Run python manage.py migrate easyaudit to create the app's models.

  2. 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.

Clone this wiki locally