django-hoptoad

Some simple Middleware for letting Django-driven websites report their errors to Hoptoad
Download

django-hoptoad Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Steve Losh
  • Publisher web site:
  • http://stevelosh.com

django-hoptoad Tags


django-hoptoad Description

Some simple Middleware for letting Django-driven websites report their errors to Hoptoad django-hoptoad offers some simple Middleware for letting Django-driven websites report their errors to Hoptoad. Now ponies can ride the toad too.InstallationGrab the the django-hoptoad code by cloning the [] repository (or just and unzip it somewhere):hg clone http://bitbucket.org/sjl/django-hoptoad/There's a git mirror too if you really want it.git clone git://github.com/sjl/django-hoptoad.gitOnce you download it, you can install it in the usual manner:cd django-hoptoad python setup.py installIf you'd prefer to be able to update at any time by pulling down changes with Mercurial or git, you can symlink the module into your site-packages directory instead of using python setup.py install:ln -s /full/path/to/django-hoptoad/hoptoad /full/path/to/site-packages/To make sure it works you can run:python -c 'import hoptoad': http://mercurial.selenic.com/ : http://bitbucket.org/sjl/django-hoptoad/get/tip.zipUsageTo set up a Django project to notify Hoptoad of its errors, you need to do two things in its settings.py file.First, add the HoptoadNotifierMiddleware as the last item in the MIDDLEWARE_CLASSES setting:MIDDLEWARE_CLASSES = ( # ... other middleware classes ... 'hoptoad.middleware.HoptoadNotifierMiddleware', )Next, you'll need to add a HOPTOAD_API_KEY setting. You can get the key from the Hoptoad project page.HOPTOAD_API_KEY = 'Your Hoptoad API key.' Requirements: · Python · PyYAML · Django · A Hoptoad account


django-hoptoad Related Software