Log audit events in Django
Project description
Django Audit Events
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6be3eca1ef963b5759b5b97651629292cf03a738d0aba6a04f35285015bc0139 |
|
MD5 | 797a6e6c1183036ee8c5b82488ebb694 |
|
BLAKE2b-256 | 8b1c1ed319fb115c60886b1f3987dabe065673439e6fbb8f3ad8f784351b6ecb |
File details
Details for the file django_audit_events-0.3.7-py3-none-any.whl
.
File metadata
- Download URL: django_audit_events-0.3.7-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae846b99cf9177d8799590ecbbe3c896614c8f2832b66abf9d4c7562b6286df |
|
MD5 | dd428100eafa27fbe32a4dcf4a6d9f95 |
|
BLAKE2b-256 | d3e9f21f171cc2db842babef674bb320df217cb07ff8ba8cbb57902477d6786a |