Whilst developing I want to handle some things slight differently than I will when I eventually upload to the Google servers.
Is there a quick test that I can do to find out if I'm in the SDK or live?
See: https://cloud.google.com/appengine/docs/python/how-requests-are-handled#Python_The_environment
The following environment variables are part of the CGI standard, with special behavior in App Engine: SERVER_SOFTWARE: In the development web server, this value is "Development/X.Y" where "X.Y" is the version of the runtime. When running on App Engine, this value is "Google App Engine/X.Y.Z".
The following environment variables are part of the CGI standard, with special behavior in App Engine: SERVER_SOFTWARE:
SERVER_SOFTWARE
In the development web server, this value is "Development/X.Y" where "X.Y" is the version of the runtime.
Development/X.Y
X.Y
When running on App Engine, this value is "Google App Engine/X.Y.Z".
Google App Engine/X.Y.Z
1.4m articles
1.4m replys
5 comments
57.0k users