I was thinking about setting this in a db.py file or something to indicate 
that the app in in debug mode. Then before deploying, setting this to false. 
Also allowing controllers, modules, etc to access the value of this might be 
beneficial. It could be a master 'debug' switch for an entire application. 
It could be like using a DEBUG preprocessor directive, allowing you to write 
code that works differently when in debug mode for testing purposes. 

Reply via email to