The best for separating different versions is virtualenv in general. Moving an _existing_ installation into virtualenv is however not easy. (or not as easy as fixing python paths manually)
In short, removing some unnecessary paths from sys.path is your friend. I regularly use all supported versions of Django and Satchmo for compatibily tests without using virtualenv. It is relative easy if they all use the same python version. Only one Satchmo should be on the path with directories like "satchmo_store" etc. As you know paths can be added dynamically by many ways like evironment variable PYTHONPATH or option "-- pythonpath=..." for "manage.py" but the unuseful ones can be removed from "sys.path" by some written lines in "manage.py". (i.e. remove them before incorrect packages are imported) You should check files containing strings like "../../satchmo/apps" and "../satchmo/ apps" (manage.py or settings.py) whether such added relative paths are unambiguous and correct. A more cleaner solution is remove some potencially conflicting paths from easy-install.pth or other *.pth and add them dynamically the apropriate version (Possible side effects under certain circumstances are one of reasons why the newest Python 1.4 never adds parent directory of django project directory to the path, even at the cost of more complicated directory structure. Django 1.4 has customized manage.py different for every project. This was inspiration for me to do the same with old versions and it works.) If you need move some directory (i think it is not usually necassary) it is good to recompile them to be reported correct filenames and at all any code line in tracebacks etc. cd something # go to the directory under which every *.py should be recompiled python -m compileall -f $(pwd) --Hynek On 27 dub, 17:45, MikeKJ <[email protected]> wrote: > Yep thx done that, also as it is a satchmo shop melded with normal django > and apps in the settings.py too I am now getting > > [Fri Apr 27 16:30:12 2012] [error] [client 194.164.225.146] PythonHandler > django.core.handlers.modpython: IOError: [Errno 2] No such file or > directory: '/var/www/django/satchmo/satchmo.log' > > even after I traced the path down and changed it to > /var/www/django/foldername/satchmo.log' what it should be, I still get the > above error -- You received this message because you are subscribed to the Google Groups "Satchmo users" 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/satchmo-users?hl=en.
