Skip to main content

A Django app to log management commands

Project description

https://travis-ci.org/achedeuzot/django-commandlog.svg?branch=master https://coveralls.io/repos/github/achedeuzot/django-commandlog/badge.svg?branch=master

Django CommandLog adds the possibility to log django management commands. The log is then available in the admin interface.

Quick start

  1. Add “django_commandlog” to your INSTALLED_APPS settings like this:

INSTALLED_APPS = [
    ...
    'django_commandlog',
]
  1. Run python manage.py migrate to add the tables of django_commandlog to your database.

3. To log an admin command, add the @command_log decorator above the class. It currently supports only custom management commands. If you wish to add this to default django manage commands you’ll have to create a child class with the decorator. Pull/Merge requests are welcome with a fix for this. Example below:

@command_log
class SampleCommand(BaseCommand):

    def handle(self, *args, **options):
        ...

Requirements

  • python 2.7, 3.3

  • django 1.10

Tested on Django 1.10.3

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-commandlog-0.1.3.tar.gz (8.7 kB view hashes)

Uploaded Source

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