django - Python - Unknown command: 'supervisor' -
i'm tring use django-supervisor
i've created new virtualenv 'supervisor_env' i've installed django i've created new project in supervisor_env called supervisor_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 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 django changing mode of build/scripts-2.7/django-admin.py 644 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 755 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' usage.
i followed guide (django-supervisor) i'm stuck @ first command
i tried install supervisor same result
(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 package supervisor requirement satisfied (use --upgrade 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 package meld3 installing collected packages: supervisor, meld3 running setup.py install 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 /opt/virtualenvs/supervisor_env/bin installing pidproxy script /opt/virtualenvs/supervisor_env/bin installing supervisorctl script /opt/virtualenvs/supervisor_env/bin installing supervisord script /opt/virtualenvs/supervisor_env/bin running setup.py install meld3 installed supervisor meld3 cleaning up... (supervisor_env)yobre-work:virtualenvs yobre$ python supervisor_project/manage.py supervisor unknown command: 'supervisor' type 'manage.py help' usage.
someone has never competed in venture? thank all
you need add django supervisor application installed_apps
list in settings module. quoting documentation:
to started, include "djsupervisor" in installed_apps , drop "supervisord.conf" file in project directory, right next main manage.py script.
installed_apps += ("djsupervisor",)
Comments
Post a Comment