Socket
Book a DemoInstallSign in
Socket

django-command-log

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-command-log

Django management command auditing app

pipPyPI
Version
2.2.1
Maintainers
1

Django Management Command Log

App to enable simple auditing of Django management commands

Version support

This project now supports Django 4.2+, and Python 3.8+. See git tags and PyPI classifiers for support.

Background

This app wraps the standard 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts