尝试学习Django,每次运行django-admin.py
脚本时,它所做的就是打印帮助。有什么问题?
N:\Code\djtest>django-admin.py startproject helloworld
Usage: django-admin.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
(...)
N:\Code\djtest>django-admin.py help startproject
Usage: django-admin.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
(...)
如果我运行python C:\Python27\Scripts\django-admin.py startproject blahblah
确实有效,尽管这很麻烦。
import sys; print sys.version
上添加到脚本中)