Skip to main content

Easily audit Django management commands

Project description

https://badge.fury.io/py/django-management-audit.png https://travis-ci.org/hiisi13/django-management-audit.png?branch=master https://coveralls.io/repos/hiisi13/django-management-audit/badge.png?branch=master

Audit your app’s management command calls with a single line of code. Logs command name and start/end timestamps on every run.

Quickstart

  • Install django-south-central:

    pip install django-management-audit
  • Create database table for audit records:

    python manage.py syncdb

Usage

  • Modify your manage.py file to import audit installer and run it:

    from management_audit import install
    
    install(['your_app_name',])
  • Optionally supply exclusion list of commands that you don’t want to audit:

    install(['your_app_name',], ['command_to_ignore',])
  • When commands from your apps will be run, django-management-audit will create a database record for each run which includes command’s name and start/end timestamps.

TODO

  • Log command parameters in addition to name and timestamps.

  • Create admin UI to browse audit records.

  • Add inclusion list as opposite to exlusion list (verify if that’s a use case at all)

History

0.1.0 (2014-01-01)

  • First release on PyPI.

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-management-audit-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file django-management-audit-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-management-audit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3c0c243da7efc3f1f4ce67b622924d224087768fc73ba7b4f84ce72267a441c6
MD5 834c16354ac0052f78a47016fa372ba9
BLAKE2b-256 1b5bbceaff9bfc0cbadb6b6bf2af0c632dfb142b4e106fcdc25fb60082c6845e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page