Tip: get the value of the URL and set the Debug accordingly from that, it makes it easier if you don't have to remember changing the flag.
Have a look at this, for example: request.env.http_host.split('.')[0] On May 16, 6:15 pm, Ross Peoples <ross.peop...@gmail.com> wrote: > 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.