Hi Cem,

Not exactly an "anwser", but we auto-generate a "Local.py" file per
installation (as well as our apache configuration files).  Local.py linked
to from the main application package directory (you can set the python path
from apache configuration).

class App:
   from .Local import MemcachedServers, SecureURL, StandardURL

Then...
   App.SecureURL

-JG

On Sat, Nov 14, 2009 at 12:06 PM, inaf <[email protected]> wrote:

>
> I am using mod_wsgi 2.4 in daemon mode. I have an object that gets
> initialized and created as a singleton object that gets used by the
> same .wsgi file. What initializes it with the parameters is the first
> call ever made to the .wsgi file. After that point, though they all
> initialize the object, they all get the same singleton object. To make
> things more manageable, I would like have those parameters in mod_wsgi
> apache configuration so that I can read them from there in my .wsgi
> file to initialize the singleton object. These parameters are simply
> URLs for memcached servers that my .wsgi file connects to. Since I
> have multiple environments and each environment will be using
> different memcached servers, I would like to have these URLs set as
> parameters in apache configuration files rather than in my .wsgi file.
> Is there a way to achieve this? I looked through the documentation but
> I could not find anything. Any help would be greatly appreciated.
>
> Thanks,
> -Cem
>
> >
>

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