import os def in_development(): [docs] """ Returns True if we are in development """ return not os.environ.get('SERVER_SOFTWARE') \ or 'Development' in os.environ.get('SERVER_SOFTWARE')
Enter search terms or a module, class or function name.