[英]Why “django-admin.py startproject myproject” doesn't create a project but instead open django-admin.py in Eclipse?
I've installed Python 3.4
& Django v1.7
in my computer win8
. 我已经在计算机
win8
安装了Python 3.4
和Django v1.7
win8
。 Everything works well so far. 到目前为止一切正常。 Then I installed
Eclipse
& PyDev
. 然后我安装了
Eclipse
& PyDev
。 Everything seems ok until, I try to create a new project with theses lines : 一切正常,直到我尝试使用这些代码行创建一个新项目:
django-admin.py startproject myproject
Results : myproject was not created, & instead the django-admin.py files is opened in Eclipse. 结果:未创建myproject,而是在Eclipse中打开django-admin.py文件。
How can I fixed this issue ? 我该如何解决此问题?
Ok, I've found. 好的,我找到了。 I have changed the behavior of my python files & associated them to Eclipse.
我已经更改了python文件的行为并将其与Eclipse相关联。 Eventually, I re-associate them with IDLE/Python.
最终,我将它们与IDLE / Python重新关联。 And everything work well now.
现在一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.