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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size django_audit_events-0.2.3-py3-none-any.whl (19.6 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size django-audit-events-0.2.3.tar.gz (18.4 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for django_audit_events-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fa953b2436f8c910306aa20c991289d8ca13838dc9c5facfe6a1c619e5eb9b |
|
MD5 | 6c97fd8037b74c4f37fc16d1ff823728 |
|
BLAKE2-256 | f797410b3e003aefdeffcc6f81f028f760a76ac8cf5b9d0cb64de365e75c00a1 |
Close
Hashes for django-audit-events-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a81e86a880764a95d93099b39060c49e57ec7c08e86e971f2d003e112feffcf |
|
MD5 | 94275c6ea3e3b432c9d0ca448baffcc6 |
|
BLAKE2-256 | d066419d66b4b75b9b13a3b101eae82e1637fd48cbc22b1a3eff1fa816b3fb0b |