On Sat, Apr 18, 2009 at 11:20 AM, Lee Olayvar <[email protected]> wrote:
> Is there a simple way to tell where your app is running? Eg, something as
> fast as a little bool check? (__debug__ .. if that worked)
import os
is_debug = os.environ['SERVER_SOFTWARE'].startswith('Development/')
Dave.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---