Yet another Django audit log app, hopefully the simplest one.
Maintained. Last release 4 months ago, commits in 6 of the last 26 weeks.
pip install django-easy-auditdjango-easy-audit
Yet another Django audit log app, hopefully the easiest one.
This app allows you to keep track of every action taken by your users.
Quickstart
-
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_APPSlike 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 easyauditto 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.
Settings
For an exhaustive list of available settings, please check our wiki.
Below are some of the settings you may want to use. These should be defined in your project's settings.py file:
-
DJANGO_EASY_AUDIT_WATCH_MODEL_EVENTS -
DJANGO_EASY_AUDIT_WATCH_AUTH_EVENTS -
DJANGO_EASY_AUDIT_WATCH_REQUEST_EVENTSSet these to
Falseto stop logging model, authentication, and/or request events. -
DJANGO_EASY_AUDIT_UNREGISTERED_CLASSES_EXTRAA list of Django models which will be ignored by Django Easy Audit. Use it to prevent logging one or more of your project's models. List items can be classes or strings with format.