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.

Source Distribution

django-command-log-0.4.tar.gz (7.5 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.4-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-command-log-0.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.8.1 Darwin/20.2.0

File hashes

Hashes for django-command-log-0.4.tar.gz
Algorithm Hash digest
SHA256 eeca0299edc776c005e265def63100ca62a391e097e294bb40cd86927a8b57d0
MD5 76534f3bfe7ea986f61eee86d51e178b
BLAKE2b-256 ef9fc9cef82c697813cb6b2f44abf3e4785e8ea7e59aad2de3aeb6601a976615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_command_log-0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.8.1 Darwin/20.2.0

File hashes

Hashes for django_command_log-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d504ee5eea95615c59363ac3b017e343c379a1bc878c4e4b2d47ae40af5858
MD5 22237f75650341e50432ccc3fdf6251d
BLAKE2b-256 7b0e6e0b3740193caf804cde98058aa7f41e9d6b170fc73bd15f9fd279c528e1

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