Dogslow is Django watchdog middleware class that logs tracebacks of slow requests.

Installation

Install dogslow:

$ pip install dogslow

Then add if to your list of middleware classes in your Django settings.py file:

MIDDLEWARE_CLASSES = ( 'dogslow.WatchdogMiddleware', ... )

For best results, make it one of the first middlewares that is run.