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 now support Django 3.2+, and Python 3.8+.
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.1.tar.gz (7.8 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.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_command_log-2.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.10 Darwin/23.1.0

File hashes

Hashes for django_command_log-2.1.tar.gz
Algorithm Hash digest
SHA256 c7b81631375ce11a7640c41c4557030f216a493b4b1a47e0cdcf4413efa23847
MD5 47e810771e95f616453756a424226597
BLAKE2b-256 b2feaa272efbec2291d36bbc076177e66e7a746c15fefd0f2569085b0f20617e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_command_log-2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.10 Darwin/23.1.0

File hashes

Hashes for django_command_log-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc48276c282a3b60aa6a013794550a8573b77d5797ae9e96f4a2570e9b1e812
MD5 64f266efbdf1fc075c82e41a917f9266
BLAKE2b-256 fdfb15c9b943f1205b7b4dac4e283860e3ee8967480d1264d82e3c0309825f2c

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