[mod_python] Importing different script with the same names

Manfred Stienstra manfred.stienstra at dwerg.net
Tue Jan 13 17:41:56 EST 2004


On Tue, 2004-01-13 at 03:16, Michael S. Fischer wrote:
> Alain Tesio wrote:
> > Hi, I have the problem described in the faq here :
> > 
> > http://www.modpython.org/FAQ/faqw.py?req=show&file=faq03.009.htp
> > 
> > In short, when you request /home/x/script.py and then another requests
> > wants /home/y/script.py the first one is used in the same apache process.
> > 
> > This makes it hard to have production and test scripts on the same machine.
> 
> Alternatively, perhaps you could bind the server to two separate ports
> using <VirtualHost> blocks, each serving the same namespace but using
> different mod_python modules.

You can also set the interpreter name:

PythonInterpreter "ProjectX"

Manfred



More information about the Mod_python mailing list