Hoptoad with Django

hoptoad is a hosted web application for filtering and sorting errors from Web Applications. It is very much integrated with the Ruby on Rails community.

For Django there are similar Applications like django-db-log but to my Knowledge there is no hosted solution for Django. Hosted solutions are nice, because some types of errors might prevent you from saving information in the local database.

But there is django-hoptoad which brings basic hoptoad functionality to Django.

To use it, got to a href=“http://hoptoadapp.com“>hoptoadapp.com, sign up and create a Project. Go to „Edit Project and tou should see something like „Current API key: 3c81d132d2f28749eab2043bb4c987a5“.
There seems an other type of „auth_token“ which is not per project but per user. Don’t use this.

If you use the Lighthouse Bugtracker, you can add it to your Hotoad configuration at this point to integrate the two Applications.

Now download django-hoptoad form it’s homepage and install it on your server.

Then add something like this to your settings.py:

HOPTOAD_NOTIFY_WHILE_DEBUG = True
HOPTOAD_API_KEY = '6c2...b3'
HOPTOAD_NOTIFY_404 = True
HOPTOAD_NOTIFY_403 = True
HOPTOAD_IGNORE_AGENTS = ['Googlebot', 'Yahoo! Slurp']
MIDDLEWARE_CLASSES = list(MIDDLEWARE_CLASSES).append( 
    'hoptoad.middleware.HoptoadNotifierMiddleware')

That’s all!

You now can see your issues aggregated by cause, create Lighthouse-Tickets from them and have peace of mind that your exceptions aren’t lost, even when your servers hard disks are full.

4 comments on “Hoptoad with Django

  1. Artur
    2009-12-20 at 09:09 #

    I see you use commercial tools – Lighthouse (instead of Trac) and this Hoptoad. Is the value of this service worth of integration? Isn’t sufficient to analyze such logs by hand and by handwritten scripts? What about network latencies when sending logs to them?

  2. mdornseif
    2009-12-21 at 12:09 #

    I haven’t looked into latency so far. For a variety of distributed services it would be far more work to code and operate the services (and associated Hardware) to gather that data ourselves.

  3. Artur
    2009-12-21 at 18:43 #

    I hope nice method to manage logging across many systems is storing them in a global document-database, like Couchdb or MongoDB which I plan to use. MongoDB seems be better because it has ad-hoc queries. And when having logs in db it should be fairly simple to analyze them and look for errors.

Trackbacks/Pingbacks

  1. disLEXia - Buy, don’t build! - 2010-01-03

    […] läuft den Geek instinkten sehr zuwieder. Ist der Service, den man da Zukauft nicht überteuert? Wie ist der Integrationsaufwand? Hat man so […]

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s