This package provides a Django middleware class that handles errors and will send them to the Raygun.IO service if the appropriate settings are enabled.
Install from Github:
$ pip install git+https://github.com/bopfermann/django-raygun-dot-io.git#egg=django_raygun_dot_io
OR download and...
$ python setup.py install
Add the middleware class to your MIDDLEWARE_CLASSES
:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'raygun_dot_io.middleware.RaygunDotIOMiddleware',
)
And then add your settings.
RAYGUN_API_URL
: This allows you to override the default raygun api URL. (Default:https://api.raygun.io/entries
)RAYGUN_API_KEY
: This is your private Raygun.IO API Key for the configured application. Please get this from Application Settings at https://app.raygun.io/RAYGUN_API_ENABLED
: This will turn the error reporting on or off (True or False) (Default: False)