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" > > > > is probably correct. Then "import promotions" will work if > > prod/promotions/ is a directory. > > > > Thanks for both your feedback (I did actually reply within minutes but > it seems not to have been posted despite getting confirmation.) Your > messages confirmed my thinking in that it should all be a matter of > setting the directory structure and tweaking Apache configuration. > However, it is still not responding as I'd expected. > > I set the <Location> directive to include the paths above and below > the project location: > > <Location "/"> > SetHandler python-program > PythonPath "['/usr/test/promotions'] + sys.path" > PythonPath "['/usr/test'] + sys.path" > PythonPath "['/usr'] + sys.path"
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---