【发布时间】:2015-02-23 07:29:32
【问题描述】:
我正在使用 Python 3.4.2 和 Django 1.7.1
我已经能够创建一个名为 mysite 的文件夹,其内容如教程中所示。
但是当我运行命令 manage.py runserver 时没有任何反应:
C:\Users\thEpuQ8f\Dropbox\zephyrus>manage.py runserver
我在命令行中收到以下消息:
Usage: manage.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 Raise on exception
--no-color Don't colorize the command output.
--version show program's version number and exit
-h, --help show this help message and exit
Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
# and so forth
【问题讨论】:
-
pythonpath 设置了吗?试试 python manage.py runserver
-
我得到:
C:\Users\thEpuQ8f\Dropbox\zephyrus>python manage.py runserver 'python' is not recognized as an internal or external command, operable program or batch file.似乎根本不起作用。