Re: Avoiding explicit references in application files

2007-06-11 Thread Tipan
> These just override the previous values in each case. They don't append > to them or anything like that. > > PythonPath "['/usr/test/promotions/', '/usr/test/'] + sys.path" > > or something similar is more likely what you want. > > Regards, > Malcolm Thanks Malcolm. That did the trick.

Re: Avoiding explicit references in application files

2007-06-11 Thread Malcolm Tredinnick
On Mon, 2007-06-11 at 02:35 -0700, Tipan wrote: > > > It sounds like you just need to tweak your Python path so that things > > inside the prod/ or test/ directory (in the appropriate case) are on the > > Python path. Something like > > > > PythonPath "['/usr/prod/'] + sys.path" > > > > i

Re: Avoiding explicit references in application files

2007-06-11 Thread Tipan
> It sounds like you just need to tweak your Python path so that things > inside the prod/ or test/ directory (in the appropriate case) are on the > Python path. Something like > > PythonPath "['/usr/prod/'] + sys.path" > > is probably correct. Then "import promotions" will work if > prod

Re: Avoiding explicit references in application files

2007-06-08 Thread Malcolm Tredinnick
On Fri, 2007-06-08 at 07:33 -0700, Tipan wrote: > I'm in the process of moving our projects onto production servers and > attempting to remove explicit references to the application name in my > files. I want to be able to run a full production and a staging > version on the same server (I've set

Re: Avoiding explicit references in application files

2007-06-08 Thread Forest Bond
On Fri, Jun 08, 2007 at 07:33:40AM -0700, Tipan wrote: > > I'm in the process of moving our projects onto production servers and > attempting to remove explicit references to the application name in my > files. I want to be able to run a full production and a staging > version on the same server (

Avoiding explicit references in application files

2007-06-08 Thread Tipan
I'm in the process of moving our projects onto production servers and attempting to remove explicit references to the application name in my files. I want to be able to run a full production and a staging version on the same server (I've set this up with Apache VirualHosts). Both versions will be