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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_command_log-2.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/23.3.0

File hashes

Hashes for django_command_log-2.2.tar.gz
Algorithm Hash digest
SHA256 44392e5e692ddc5517b5210510a2b9e00e568b37a83afd034df2cd268bd5c5e1
MD5 e48d5189f6b3d37b0ef5fff9b50352f3
BLAKE2b-256 7d80f0dbd1eccced7787001ee470381e6fd95d64548df7f30f82085e0cc222c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_command_log-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b495e35b400454c205927b057ee62a7d0c17cff20abcc2c771cc21cc54f5ee1b
MD5 d0d2bda4dc64a7d7495656509ecff61f
BLAKE2b-256 b860287244fdb6021ea1a0a5eb6eeb474314fb4d787f7e83633916eaccdb22eb

See more details on using hashes here.

Supported by

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