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.

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-0.3.tar.gz (5.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-0.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file django-command-log-0.3.tar.gz.

File metadata

  • Download URL: django-command-log-0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.1 Darwin/19.4.0

File hashes

Hashes for django-command-log-0.3.tar.gz
Algorithm Hash digest
SHA256 6d1b57e2f733aa243d10edafe0b07abf91d0ed41661c9fafc0e4d47aad4615d1
MD5 fe08b20c791d6e7cbc67fa274af42f6a
BLAKE2b-256 dd8348cecdebbc5cf0ca54b2b9eb9b8c72206c50e92580ab41d967a5218d677f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_command_log-0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.1 Darwin/19.4.0

File hashes

Hashes for django_command_log-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ece3da4d968f454d4f724878cb6a60efbe0624ac96002b61364dcad781754bca
MD5 3df4e3beb32a20cb3db0ef4c8563013e
BLAKE2b-256 996d685f1ddb2dd58126ae3b7b88076fa16cfd0e23ca2f2c1cd41b7901db52e8

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