django_ratchet

Ratchet.io plugin for Django
Download

django_ratchet Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Brian Rue
  • Publisher web site:
  • http://github.com/brianr/

django_ratchet Tags


django_ratchet Description

django_ratchet is a simple Django middleware for reporting errors from Django apps to Ratchet.io.InstallationInstall using pip:pip install django_ratchetConfigurationBasic configuration requires two changes in your settings.py.1. Add 'django_ratchet.middleware.RatchetNotifierMiddleware' as the last item in MIDDLEWARE_CLASSES: MIDDLEWARE_CLASSES = ( # ... other middleware classes ... 'django_ratchet.middleware.RatchetNotifierMiddleware', )2. Add the RATCHET settings dictionary somewhere in settings.py. The bare minimum is: RATCHET = { 'access_token': '32charactertokengoeshere', }3. Most users will want a few extra settings to take advantage of more features: RATCHET = { 'access_token': '32charactertokengoeshere', 'github.account': 'brianr', 'github.repo': 'django_ratchet', 'branch': 'master', 'root': '/absolute/path/to/code/root', }Here's the full list of configuration variables:access_token Access token from your Ratchet.io projectendpoint URL items are posted to. default: http://submit.ratchet.io/api/item/handler One of:- blocking -- runs in main thread- thread -- spawns a new thread- agent -- writes messages to a log file for consumption by ratchet-agent default: threadtimeout Request timeout (in seconds) when posting to Ratchet. default: 1environment Environment name; should be production, staging, or development. default: development if settings.DEBUG is True, production otherwiseroot Absolute path to the root of your application, not including the final /. If your manage.py is in /home/brian/www/coolapp/manage.py, then this should be set to /home/brian/www/coolapp . Required for Github integration.github.account Github account name for your github repo. Required for Github integration.github.repo Github repo name. Required for Github integration.branch Name of the checked-out branch. Required for Github integration.agent.log_file If handler is agent, the path to the log file. Filename must end in .ratchetContributingContributions are welcome. The project is hosted on github at http://github.com/brianr/django_ratchetProduct's homepage


django_ratchet Related Software