[Fixed]-How can you use two different versions of Django for different projects on the same machine?

11👍

zc.buildout (esp. for deployment) and virtualenv (esp. for development) were Jacob Kaplan Moss’s top suggestions at the “Django in the real world” tutorial he gave at OSCON today, though he did mention many other tools — see his slides on O’Reilly’s site.

6👍

You may want to consider using something like Virtualenv. It allows you to set up multiple isolated Python environments. So, not only could you have multiple Djangos, but you could have different versions of Python running as well.

Zed Shaw created a screen cast of setting up Virtualenv, although not with Django specifically, (he shows how to get his mail software, Lamson, up and running). However, the concepts also work for setting up multiple versions of Django on the same machine with Virtualenv.

3👍

Take a look at virtualenv http://pypi.python.org/pypi/virtualenv It helps you keep contained environments. Pinax uses it. http://www.pinaxproject.com

👤dar

2👍

virtualenv

👤Mark

0👍

virtualenvwrappper make virtualenv easier. http://pypi.python.org/pypi/virtualenvwrapper

👤Mordi

0👍

You can use different users at operating system level. It works nice on linux, and I guess it should work on Mac, too.

You can install django and other packages into the per user site-packages directory:

http://www.python.org/dev/peps/pep-0370/

Related: Do I need virtualenv?

Leave a comment