简体   繁体   English

在新的虚拟环境中运行旧的django应用

[英]Running old django app in new virtual environment

I have a django app i was running in python 2.7 and django 1.7.10.However am trying to transition it to django 1.8. 我有一个django应用程序,我在python 2.7和django 1.7.10中运行,但是正在尝试将其过渡到django 1.8。 I have created a new virtualenv,installed python2.7 and django 1.8 in it and moved the app there.However when i run the server it still reads django 1.7.10.What could be the problem ? 我创建了一个新的virtualenv,在其中安装了python2.7和django 1.8并将其移动到那里。但是当我运行服务器时,它仍然显示django 1.7.10。这可能是什么问题?

console enter image description here 控制台在此处输入图像描述

You do not need to move application for new virtual environment you just need to activate it probably you did not activate new one. 您不需要为新的虚拟环境移动应用程序,只需要激活它就可能没有激活新的虚拟环境。 Actually also you do not need a new virtual environment for upgrade. 实际上,您也不需要新的虚拟环境进行升级。 Just pip install -U django==1.8 it will upgrade your django and then make necessary edits. 只需pip install -U django==1.8 ,它将升级您的django,然后进行必要的编辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM