Skip to main content

Log audit events in Django

Project description

Django Audit Events

Build status Documentation status PyPI PyPI - Django version PyPI - Python version PyPI - License Total alerts Code quality

Extensible custom audit events for humans! This Django app allows you to easily create your own events in your project. Currently only works on PostgreSQL.

Let's have a look:

def awesome_view(request):
    foo_obj = Foo.objects.get(pk=1)
    # Do something with foo_obj...
    request.audit_context.create_event(
        foo_obj,
        something="done",
        bar="baz"
    )

This will create an audit event, including the request URL, logged-in user, remote IP address, and the following event content:

>>> event.content
{"something": "done", "bar: "baz"}

For more information about installation and usage, check out the documentation!

Release history Release notifications

This version

0.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-audit-events, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_audit_events-0.0.2-py3-none-any.whl (13.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-audit-events-0.0.2.tar.gz (15.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page