我想創建使用django的第一個項目,但本身就停留在第一步。每當我給django-admin.py startproject mysite command not working
命令,什麼也沒有發生,並幫助相關信息出現在命令提示符。我已設置PYTHON_HOME
,PATH
變量設置正確。我正在使用Python 2.7。django-admin.py startproject mysite命令不工作
我的命令提示符如下所示:
C:\Shekhar\djangoWorld>c:\Python27\Scripts\django-admin.py startproject mysite
Usage: django-admin.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,
2=verbose output, 3=very verbose output
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--version show program's version number and exit
-h, --help show this help message and exit
Type 'django-admin.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django]
cleanup
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
reset
runfcgi
爲什麼Django是不是爲我創建的項目?
請幫忙!!
謝謝...添加'python'後它的工作.... – Shekhar
問題是,當通過Windows關聯執行'django-admin.py'時,任何其他參數不會傳輸到腳本,但由一些錯誤「django-admin.py」本身是這個腳本看到的唯一參數。 –