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 2.2 and 3.0, and Python 3.7 and 3.8. Python 3.6
has been deprecated because the lack of support for __future__.annotations
makes type hinting across 3.6-3.7 complicated. See git tags and PyPI classifiers
for support.
Background
This app wraps the standad 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
.
See the test_command
and test_transaction_command
for examples.
TODO
- Documentation.
- Convert output field to JSON
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
Built Distribution
Hashes for django_command_log-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06d86ae705cb263ebae92c06d7b6c5891607651931750ea27872ac01d93b38c4 |
|
MD5 | a069108f53b3663d19edf6c2afc758c4 |
|
BLAKE2b-256 | f4e46394e381cb5b2338108974dbf6daa1095dd627626eb5af1c57f77d8cf20b |