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

Uploaded Source

Built Distribution

django_audit_events-0.2.14-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-audit-events-0.2.14.tar.gz
  • Upload date:
  • Size: 20.0 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.2.14.tar.gz
Algorithm Hash digest
SHA256 0bbd659ab86dc857ce365c58121b273e52c082ef2010ccb3f2912056d2ac5d2f
MD5 89ec8c7b58af954322a5d99e332a311b
BLAKE2b-256 b6d24cf41f899f4edb9eaf6396de28b763adc6f1279bc317776384ccb60cf881

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_audit_events-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 048273e0229f2120c7fc3d55d558e346cd1db1e33540366692b7015f2baf289a
MD5 0f6af11b6a1f585756342087620133cd
BLAKE2b-256 ec65ab100847ce24f0ae1f476da61d1f2e6c4f8990b7d4e6d51ea1e9ad21cf08

See more details on using hashes here.

Supported by

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