A Django app to log management commands
Project description
Django CommandLog adds the possibility to log django management commands. The log is then available in the admin interface.
Quick start
Add “django_commandlog” to your INSTALLED_APPS settings like this:
INSTALLED_APPS = [
...
'django_commandlog',
]
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.