On Thu, 20 Oct 2011 17:21:37 +0300, Gnarlodious <[email protected]>
wrote:

I don't want a class created on each request, I want to get environ
when initializing my application. For example:
if environ['SERVER_ADDR']=='127.0.0.1': # If localhost, add a Dev menu

These values would stay the same throughout my session. Now how can I
get these values in  __init__? Is there any workaround?

-- Gnarlie

Each request has different environment since the environment also contains
information such as the client IP address, so you cannot store the
environment on first request and then use that same environment on
subsequent calls since the environment is different on each request.

--
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to