concentricsky/csky-django-template — pull request #11 by auzigog (2012-05-31 01:53:42+00:00)
Title: Add helper for debug toolbar in settings_local

I changed a few things here:

* Added INTERCEPT_REDIRECTS: False to the debug_toolbar code since almost no one wants that on by default.
* Instead of having it commented, it is in a conditional that only runs if debug_toolbar can be impoted

This solved the problem that arises when debug_toolbar isn't in requirements.txt (and therefore isn't installed on review), but it's being deployed to review with DEBUG=True on. I've run into this many times.

This solves the case for developers and review gracefully without introducing import errors in either case.