本文介绍了django-admin.py startproject mysite在Windows 7上运行不正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



但是,当我发出Windows 7时:

我正在学习django,并且在Windows XP上成功启动了一个网站。 >

  django-admin.py startproject mysite 

python.exe已启动,并出现一个窗口,要求我选择python.exe或其他程序打开文件....



我做错了什么或者有更多的技巧为Windows 7?

解决方案

这已经被报告给django, a href =http://bugs.python.org/issue7936 =noreferrer> http://bugs.python.org/issue7936
这些是一个解决方案:
打开regedit并找到像这样$ python.exe
C:\Python26\python.exe%1
将其更改为
C:\Python26\python。 exe%1%*


I'm learning django and I did successfully start a site on Windows XP by following the tutorial.

However, on Windows 7 when I issued:

django-admin.py startproject mysite

python.exe was started and a window appeared to ask me to choose either python.exe or other program to open a file....

Did I do anything wrong or there are more tricks for windows 7?

解决方案

That's already been reported to the django, see http://bugs.python.org/issue7936And these's an solution:open regedit and find python.exe like this"C:\Python26\python.exe" "%1"change it to"C:\Python26\python.exe" "%1" %*

这篇关于django-admin.py startproject mysite在Windows 7上运行不正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 17:39