Giter Club home page Giter Club logo

django-maven's Introduction

django-maven

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.

Tests

Tests should run with tox >=1.8. Running tox will run all tests for all environments. Use tox -e to run a certain environment, a list of all environments can be found with tox -l.

Hint: it is possible to run all environments in parallel with detox.

The name

django-maven is django Management rAVEN.

Bitdeli Badge

django-maven's People

Contributors

bitdeli-chef avatar generalov avatar ilyasemenov avatar jgoclawski avatar saippuakauppias avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.