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

后端 未结 6 753
难免孤独
难免孤独 2020-12-17 16:18

I\'m currently using Django 1.0 on my Mac OS X 10.5.7 box. It\'s installed to:

/Library/Python/2.5/site-packages/django/

However, there are features that are

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 16:50

    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.

提交回复
热议问题