theospears/django-speedbar — pull request #14 by adamghill (2014-09-06 15:08:05+00:00)
Title: Configure when the middleware should profile

I want to be able to show profile information all of the time, so this gives me a way to do that. It also provides a hook if some developers only want to show that information to admin, or only on certain pages (or based on anything else that can be retrieved from the request).