On Jul 4, 3:23 am, "Brandon Wirtz" <[email protected]> wrote:
> Apparently if I use os.environ before I def get(self) then I get the last
> answer that instance gave? That maybe  something I screwed up. I moved
> where I ask to later in the code and life is happy.  Likely this is a
> failing of me not really being a python dev, just a guy who muddles through
> a lot of languages with some pointing and waving.

You shouldn't use os.environ at all; once Python gets concurrency it
will get much worse as it's not thread-safe.

Your WSGI application gets a safe-to-use environ passed to it, and
your framework probably makes the data you need accessible as well (in
webapp, self.request.host appears to be what you're looking for).

-- 
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.

Reply via email to