News for hackers. Stuff that matters.
Re:Building websites in Python with Flask by eric_bullington on Friday October 12, 2012 @06:37AM (#4644464)
Stick this in your app and you can call the debugger however you wish by customizing the function name, and it will only throw in debugger mode (in case you forget it):

  from flask import current_app

  def asdf():
      assert current_app.debug == False, "You just called debug!"

There are no comments on this comment yet.