django-maven 0.2

Capture exceptions in django management commands into Sentry by Raven

Capture exceptions in django management commands into Sentry by Raven.

Problem And Solution

Many management commands running in cron and by default errors and exceptions not wrote in logs. Or some people redirect all stdout in file (command >> file.txt) with log rotation or not.

This package make possible capture exceptions (not all stdout/stderr) in your Sentry project.

Installation

  1. Install package:

    $ pip install django-maven

  2. Add django_maven in INSTALLED_APPS.

  3. Use it! ;)

Example Of Usage

It's simple!

Add maven command by first argument for manage.py in your management command string.

For example, this is command without django-maven:

$ python manage.py rebuild_index --noinput

And command with django-maven:

$ python manage.py maven rebuild_index --noinput

If rebuild_index command raising exception (server die or error creating index) you see their in your Sentry.

The name

django-maven is django Management rAVEN.

Changes

0.2 (2013-07-22)

  • Fix compatable with new Raven config (thanks @mktums)

0.1 (2013-07-17)

Initial release

ISC

Author

Denis Veselov

Pip

django-maven==0.2

Classifiers

  • Topic :: Internet :: WWW/HTTP
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: ISC License (ISCL)
  • Intended Audience :: Developers
  • Framework :: Django
  • Development Status :: 5 - Production/Stable
File Type Python Version Uploaded On Downloads
django-maven-0.2.tar.gz Source July 22, 2013 5,167
Version Release Date
0.2 July 22, 2013
0.1 July 21, 2013
Date Package Version Action
Nov. 4, 2014, 1:26 p.m. django-maven 0.2 Release Created
Nov. 4, 2014, 1:26 p.m. django-maven 0.1 Release Created
Nov. 4, 2014, 1:26 p.m. django-maven Package Created