Skip to main content

Django management command auditing app

Project description

# Django Management Command Log

App to enable simple auditing of Django management commands

### Version support

This project supports Python 3.12+ and Django 5.2-6.0.
See git tags and PyPI classifiers for support.

## Background

This app wraps the standard Django management command base class to record the
running of a command. It logs the name of the command, start and end time, and
the output (if any). If the command fails with a Python exception, the error
message is added to the record, and the exception itself is logged using
`logging.exception`.

![Screenshot of admin list
view](https://github.com/yunojuno/django-management-command-log/blob/master/screenshots/list-view.png)

![Screenshot of admin detail
view](https://github.com/yunojuno/django-management-command-log/blob/master/screenshots/detail-view.png)

See the `test_command` and `test_transaction_command` for examples.

## TODO

* Documentation.
* Convert output field to JSON

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_command_log-2.3.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_command_log-2.3.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file django_command_log-2.3.0.tar.gz.

File metadata

  • Download URL: django_command_log-2.3.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for django_command_log-2.3.0.tar.gz
Algorithm Hash digest
SHA256 706b757a7870475e15ac768b0d70b87f6ca9b8b3e92d380b7bc51951e9d99448
MD5 9e83d2392d3b45b26cce3ce5c198aa41
BLAKE2b-256 0b3c0452a85c4e86185a5cb3c301c520788b71ee2808ec4c63dcdbbf11808161

See more details on using hashes here.

File details

Details for the file django_command_log-2.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_command_log-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2db45634bd81088bc2b54d7f53ac2b325610bda41441d5c3c8b9b4cfa02429e3
MD5 fafc66a53b7475d99933409bf08a1b53
BLAKE2b-256 63c4b0e931c836cb45d1e6c1ccaec713e1752fd15f50093d44788c5f6ac7dc6d

See more details on using hashes here.

Supported by

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