I haven't actually tried this yet, but couldn't you do something like this to turn it off/on:
import gluon custom_import custom_import.DEBUG = False
I haven't actually tried this yet, but couldn't you do something like this to turn it off/on:
import gluon custom_import custom_import.DEBUG = False