I was just going through Graham's wonderful presentation on WSGI at http://blip.tv/file/3840484 in which he talks about the problem of using virtualenv with mod_wsgi, and how the 'site' module partially solves this problem, even though not entirely without some uncomfortable side-effects.
My hosting provider (Dreamhost) provides a Passenger based wsgi feature (http://wiki.dreamhost.com/Passenger_WSGI). I have been able to use the following in the top of my wsgi file in such an environment to use the modules in my virtualenv. INTERP = "/path/to/virtualenv/bin/python" if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv) I haven't tried it yet, though. It works for me there, and I haven't had any PYTHONPATH based issues. - Sandip (re-posting to this list as suggested by Graham) -- 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.
