views:

34

answers:

2

hi,

I've got a version of a module (South 0.6) installed system-wise and a newer version installed in my home. When I add 'south' to my INSTALLED_APPS, it uses the system-wise version. How can I tell Django to use the version in my home?

Thanks

Jul

+2  A: 

There is a package named virtualenv which was designed to handle this specific problem. It allows you to create a virtual environment for each python project (ie. Django project), letting you choose which version of a module is installed.

T. Stone
Ok, thanks. Do you know if I can use it for an existing project?
jul
+2  A: 

Virtualenv (and virtualenvwraper) is definitely your friend for handling things like this when you are able to create a new environment. You should go ahead and play with it. If you are not able to mess around with virtualenv right now, you can just put your personal python lib path at the front of PYTHONPATH:

# from your command prompt:
$ export PYTHONPATH=$HOME/your/python/libs:$PYTHONPATH
istruble
Great, thank you!
jul