I have a Google App application in which I want to work differently, depending on whether it works in the local local environment (for example, with dev_appserver.py), unlike the real GAE cloud.
I am currently using a flag variable, which I manually switch to achieve this. But I am sure that one day I will forget to change it and lead to a problem. So I would like to know if there is an API or any other way to find out where the GAE application works?
Thanks.
google-app-engine
Jayesh
source share