def DetectGae():
    "Determine whether or not we're running on GAE.\n\n  This is based on:\n    https://developers.google.com/appengine/docs/python/#The_Environment\n\n  Returns:\n    True iff we're running on GAE.\n  "
    server_software = os.environ.get('SERVER_SOFTWARE', '')
    return (server_software.startswith('Development/') or server_software.startswith('Google App Engine/'))
Determine whether or not we're running on GAE.

This is based on:
  https://developers.google.com/appengine/docs/python/#The_Environment

Returns:
  True iff we're running on GAE.
def DetectGae():
    "Determine whether or not we're running on GAE.\n\n  This is based on:\n    https://developers.google.com/appengine/docs/python/#The_Environment\n\n  Returns:\n    True iff we're running on GAE.\n  "
    server_software = os.environ.get('SERVER_SOFTWARE', )
    return (server_software.startswith('Development/') or server_software.startswith('Google App Engine/'))