【发布时间】:2012-05-30 16:56:00
【问题描述】:
我正在尝试使用 django 创建第一个项目,但本身就卡在了第一步。每当我发出django-admin.py startproject mysite command not working 命令时,什么都不会发生,并且帮助相关信息会出现在命令提示符下。我已经正确设置了PYTHON_HOME、PATH 变量。我正在使用 python 2.7。
我的命令提示符如下:
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 没有为我创建项目?
请帮忙!!
【问题讨论】:
标签: django python-2.7