Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Django project for Airbrake
Python
branch: master

Merge pull request #5 from airbrake/feature/licsense

PyPI: add license, manifest recommended for PyPI
latest commit 5824dd34fb
@ashishgandhi ashishgandhi authored
Failed to load latest commit information.
airbrake Don't notify Airbrake asynchronously as this breaks the backtrace. Also,
debian some debian packaging tweaks
.gitignore Added a .gitignore and created an initially working version of django…
LICENSE.rst
MANIFEST.in PyPI: add license, manifest recommended for PyPI
README.mkd Made both exception and request optional for submitting something to …
setup.py Don't notify Airbrake asynchronously as this breaks the backtrace. Also,

README.mkd

Overview

When I went to implement Airbrake in Sprint.ly I found two projects that looked like they might do the trick: django-airbrake, which was forked from the dormant django-hoptoad and Pytoad which wasn't made for Django. In the end, I decided to use bits and pieces of the two as the older django-airbrake wasn't working with the newer API and Pytoad didn't have any Django sugar.

Configuration

In your settings.py file you're going to want to create a dictionary called AIRBRAKE. This dictionary will allow you to control how the Airbrake integration will work with your application.

AIRBRAKE = {
    'API_KEY': 'your_api_key_here',
    'USE_SSL': True,
    'TIMEOUT': 5,
    'ENVIRONMENT': 'unique_name_for_environment',
}

Once you've setup your Airbrake settings you just need to add airbrake to your INSTALLED_APPS and restart your server. If your code is as poorly written as mine, the errors will start flowing into Airbrake shortly.

Something went wrong with that request. Please try again.