How to specify which version of the application I want to use in the "INSTALLED_APPS

I have a version of the module (South 0.6) installed on the system and a newer version installed in my house. When I add south to my INSTALLED_APPS it uses the system version. How can I tell Django to use the version in my home?

thanks

July

+2


a source to share


2 answers


Virtualenv (and virtualenvwraper ) is definitely your friend for dealing with things like this when you can create a new environment. You have to go ahead and play with it. If you can't communicate with virtualenv right now, you can just put your personal python path at the top of the PYTHONPATH:



# from your command prompt:
$ export PYTHONPATH=$HOME/your/python/libs:$PYTHONPATH

      

+2


a source


There is a named package virtualenv

that was developed to address this specific problem. It allows you to create a virtual environment for each python project (like a Django project), allowing you to choose which version of the module is installed.



+2


a source







All Articles