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!

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.3.7.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

django_audit_events-0.3.7-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file django-audit-events-0.3.7.tar.gz.

File metadata

  • Download URL: django-audit-events-0.3.7.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for django-audit-events-0.3.7.tar.gz
Algorithm Hash digest
SHA256 6be3eca1ef963b5759b5b97651629292cf03a738d0aba6a04f35285015bc0139
MD5 797a6e6c1183036ee8c5b82488ebb694
BLAKE2b-256 8b1c1ed319fb115c60886b1f3987dabe065673439e6fbb8f3ad8f784351b6ecb

See more details on using hashes here.

File details

Details for the file django_audit_events-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for django_audit_events-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 aae846b99cf9177d8799590ecbbe3c896614c8f2832b66abf9d4c7562b6286df
MD5 dd428100eafa27fbe32a4dcf4a6d9f95
BLAKE2b-256 d3e9f21f171cc2db842babef674bb320df217cb07ff8ba8cbb57902477d6786a

See more details on using hashes here.

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