Python 如何从 Django 1.7 降级到 Django 1.6
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27359964/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to downgrade from Django 1.7 to Django 1.6
提问by
I started a new project a few months back using Django 1.7. The company has decided to settle on using Django 1.6 for all projects.
几个月前,我使用 Django 1.7 开始了一个新项目。该公司已决定在所有项目中使用 Django 1.6。
Is there a nice way to downgrade from Django 1.7 to 1.6?
有没有一种很好的方法可以将 Django 1.7 降级到 1.6?
Are migrations the only thing I have to worry about? Are the changes between the two versions large enough that I need to rewrite the app? I was hoping to just change the version in the requirements.txt
and then install south
and create new database migrations.
迁移是我唯一需要担心的事情吗?两个版本之间的变化是否足够大,我需要重写应用程序?我希望只更改版本requirements.txt
,然后安装south
和创建新的数据库迁移。
采纳答案by Telmo Dias
sudo pip install Django==1.6.10
须藤 pip 安装 Django==1.6.10
回答by cdvv7788
You should check the Django release notes for 1.7. Just doing what you propose should be enough, but check if you are using things that changed in that log. That is project specific.
您应该查看Django 发行说明 1.7。只需执行您的建议就足够了,但请检查您是否使用了该日志中更改的内容。那是特定于项目的。
回答by Shardul Negi
For windows:
对于窗户:
pip install -U Django==required version
You will have to make changes to the original suite sub-folder
您必须对原始套件子文件夹进行更改