Metadata-Version: 2.1
Name: django-command-log
Version: 0.3
Summary: Django management command auditing app
Home-page: https://github.com/yunojuno/django-management-command-log
License: MIT
Author: YunoJuno
Author-email: code@yunojuno.com
Requires-Python: >=3.7,<4.0
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: django (>=2.2,<4.0)
Project-URL: Repository, https://github.com/yunojuno/django-management-command-log
Description-Content-Type: text/markdown

# 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`.

![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.

