简体   繁体   English

django-admin.py启动IDE

[英]django-admin.py launches IDE

I just went to create a new django project and I typed django-admin.py startproject my_project into the command prompt and it opened the django-admin.py file in my ide (komodo edit). 我刚去创建一个新的django项目,然后在命令提示符下键入django-admin.py startproject my_project,它在我的ide中打开了django-admin.py文件(komodo编辑)。

This happens every time I run this command in any form, even if I just try django-admin.py. 每当我以任何形式运行此命令时都会发生这种情况,即使我只是尝试django-admin.py。 Any ideas what's going on and how I fix it? 有任何想法怎么回事以及如何解决?

I'm on Win Xp with django 1.2.1 我在使用Django 1.2.1的Win Xp

It sounds like you associated .py files with Komodo Edit instead of with python.exe. 听起来您将.py文件与Komodo Edit而不是与python.exe相关联。 The simplest workaround is to type "python django-admin.py ..." to execute the admin. 最简单的解决方法是键入“ python django-admin.py ...”以执行管理。

You can look in your Explorer options to change the association. 您可以在“资源管理器”选项中查找以更改关联。 There's a right-click menu option I think called "Open With..." that will let you change it. 我认为有一个右键单击菜单选项,称为“打开方式...”,您可以通过它进行更改。

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

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