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!

Project details


Download files

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

Source Distribution

django-audit-events-0.2.5.tar.gz (18.8 kB view hashes)

Uploaded Source

Built Distribution

django_audit_events-0.2.5-py3-none-any.whl (20.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page