Hacker News new | ask | show | jobs
by jonknee 6133 days ago
You're right. Another handy way to do this is to keep debug as False and use middleware to show the debug error if you're logged in as an admin or from an IP that matches in INTERNAL_IPS:

http://ericholscher.com/blog/2008/nov/15/debugging-django-pr...

Sort of the best of both worlds.