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 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

Screenshot of admin detail view

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.

Files for django-command-log, version 0.4.1
Filename, size File type Python version Upload date Hashes
Filename, size django_command_log-0.4.1-py3-none-any.whl (10.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-command-log-0.4.1.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page