> 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" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE test.settings PythonDebug On </Location> I then tried both - "from promotions.models import *" and "import promotions" - both of which returned an import error: ImportError at / ......Exception Value: No module named promotions.models (slightly different message on the Import promotions - but along similar lines.) Interestingly, when I look at the sys.path it doesn't show any of my project paths - although it is running the projects successfully when explicitly defined. Adding manually using append, also doesn't change the bevhaviour. I'm wondering whether I'm looking at different instances of python running? Any pointers gratefully received. Tim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---