Finding out if you are in devmodeΒΆ

If you start grok via debug.ini it will run in devmode by default. Devmode is useful for giving more debug information for example.

To test whether your application is running devmode, try this piece of code:

from zope.applicationcontrol.runtimeinfo import RuntimeInfo
def in_dev_mode():
    return RuntimeInfo(None).getDeveloperMode() == 'On'