I need my app to run very slightly differently depending on whether it is running on the GAE launcher on my laptop or really inside GAE. The app-id is the same, the app.yaml is the same, is there something different I can see?
Asked
Active
Viewed 733 times
0
-
Does this answer your question? [In Python, how can I test if I'm in Google App Engine SDK?](https://stackoverflow.com/questions/1916579/in-python-how-can-i-test-if-im-in-google-app-engine-sdk) – tuomastik Mar 20 '20 at 06:24
1 Answers
1
Have a read of this documentation on handling requests https://cloud.google.com/appengine/docs/python/requests#Python_The_environment specifically the section on the environment.
You will see a number of potentially relevant environment variables. The one you want is SERVER_SOFTWARE . It will contain "Development" in the value.
Also this has been answered before on SO. In Python, how can I test if I'm in Google App Engine SDK?

Community
- 1
- 1

Tim Hoffman
- 12,976
- 1
- 17
- 29