未知命令:'runserver'

时间:2013-02-25 02:05:15

标签: python django

突然之间,我不能再使用manage.py“命令”(runserver,shell,syndb)。这是我得到的错误;

(pinax) C:\Python27\Projects\Catalog\pinax\catalog>python manage.py runserver
Unknown command: 'runserver'
Type 'manage.py help' for usage.

(pinax) C:\Python27\Projects\Catalog\pinax\catalog>python manage.py help
Usage: manage.py subcommand [options] [args]

Options:
  --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
Traceback (most recent call last):
  File "manage.py", line 28, in <module>
    execute_from_command_line()
  File "build\bdist.win-amd64\egg\django\core\management\__init__.py", line 352,
 in execute_from_command_line

  File "build\bdist.win-amd64\egg\django\core\management\__init__.py", line 295,
 in execute

  File "build\bdist.win-amd64\egg\django\core\management\__init__.py", line 242,
 in main_help_text

  File "build\bdist.win-amd64\egg\django\core\management\__init__.py", line 128,
 in get_commands

KeyError: 'startproject'

(pinax) C:\Python27\Projects\Catalog\pinax\catalog>

我正在虚拟环境中运行pinax项目。所以,当我去了这个错误时,我在PYTHONPATH中检查了窗户已经消失了。重新设置,仍然没有变化。我仍然是python的新手,但看起来很有理由它在构建文件中寻找“__init__”,而不是“site-packages\django”。关于我的问题来源的任何想法。

0 个答案:

没有答案
相关问题