Python-未知命令:';主管';

Python-未知命令:';主管';,python,django,supervisord,Python,Django,Supervisord,我想用django主管 我创建了一个新的虚拟“supervisor_env” 我安装了django 我在supervisor\u env中创建了一个名为supervisor\u project的新项目 YoBre-work:virtualenvs YoBre$ mkvirtualenv supervisor_env New python executable in supervisor_env/bin/python Installing setuptools.............done.

我想用django主管

我创建了一个新的虚拟“supervisor_env” 我安装了django 我在supervisor\u env中创建了一个名为supervisor\u project的新项目

YoBre-work:virtualenvs YoBre$ mkvirtualenv supervisor_env
New python executable in supervisor_env/bin/python
Installing setuptools.............done.
Installing pip...............done.
(supervisor_env)YoBre-work:virtualenvs YoBre$ pip install django
Downloading/unpacking django
  Downloading Django-1.5.1.tar.gz (8.0MB): 8.0MB downloaded
  Running setup.py egg_info for package django

    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
Installing collected packages: django
  Running setup.py install for django
    changing mode of build/scripts-2.7/django-admin.py from 644 to 755

    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
    changing mode of /opt/virtualenvs/supervisor_env/bin/django-admin.py to 755
Successfully installed django
Cleaning up...
(supervisor_env)YoBre-work:virtualenvs YoBre$ django-admin.py startproject supervisor_project
(supervisor_env)YoBre-work:virtualenvs YoBre$ python supervisor_project/manage.py supervisor
Unknown command: 'supervisor'
Type 'manage.py help' for usage.
我遵循了这个指南()但是我被第一个命令卡住了

我还尝试安装supervisor,但得到了相同的结果

(supervisor_env)YoBre-work:virtualenvs YoBre$ pip install supervisor
Downloading/unpacking supervisor
  Downloading supervisor-3.0.tar.gz (459kB): 459kB downloaded
  Running setup.py egg_info for package supervisor

Requirement already satisfied (use --upgrade to upgrade): setuptools in ./supervisor_env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg (from supervisor)
Downloading/unpacking meld3>=0.6.5 (from supervisor)
  Downloading meld3-0.6.10.tar.gz (41kB): 41kB downloaded
  Running setup.py egg_info for package meld3

Installing collected packages: supervisor, meld3
  Running setup.py install for supervisor

    Skipping installation of /opt/virtualenvs/supervisor_env/lib/python2.7/site-packages/supervisor/__init__.py (namespace package)
    Installing /opt/virtualenvs/supervisor_env/lib/python2.7/site-packages/supervisor-3.0-py2.7-nspkg.pth
    Installing echo_supervisord_conf script to /opt/virtualenvs/supervisor_env/bin
    Installing pidproxy script to /opt/virtualenvs/supervisor_env/bin
    Installing supervisorctl script to /opt/virtualenvs/supervisor_env/bin
    Installing supervisord script to /opt/virtualenvs/supervisor_env/bin
  Running setup.py install for meld3

Successfully installed supervisor meld3
Cleaning up...
(supervisor_env)YoBre-work:virtualenvs YoBre$ python supervisor_project/manage.py supervisor
Unknown command: 'supervisor'
Type 'manage.py help' for usage.
从来没有人参与过这项冒险?谢谢大家

您需要将Django Supervisor应用程序添加到设置模块的
已安装应用程序
列表中。引用文件:

要开始,只需在已安装的应用程序中包含“djsupervisor”,并在项目目录中的主manage.py脚本旁边放置一个“supervisor.conf”文件


但是,您的
manage.py
似乎没有安装
django supervisor
应用程序。您是否将其添加到已安装的应用程序中?嗨,Martijn。。pip install supervisord未找到supervisord的任何分发版本pip install supervisord未找到Supervisor安装的\u应用程序的任何分发版本。。。这很有趣,谢谢Martijn的回答。我已在已安装的应用程序列表中添加了djsupervisor,但我不知道在哪里可以找到supervisor.conf。你知道吗?:)文档告诉您在与
manage.py
脚本相同的位置创建一个脚本。它在我引用的句子下面提供了一个示例。
INSTALLED_APPS += ("djsupervisor",)