Note that there are some explanatory texts on larger screens.

plurals
  1. POGunicorn: 127.0.0.1 in use
    primarykey
    data
    text
    <p>I'm trying to use Django with virtualenv. I actually got the Django hello world webpage to display with 127.0.0.1:8001. Later I had to do some minor tweaks and now its giving me this error when I try to launch it again (I ctrl-Z from the previous working gunicorn session so I don't think it is because of that). </p> <pre><code> user myenv # /opt/myenv/bin/gunicorn -c /opt/myenv/gunicorn_config.py myProject.wsgi 2013-11-02 08:26:37 [27880] [INFO] Starting gunicorn 18.0 2013-11-02 08:26:37 [27880] [ERROR] Connection in use: ('127.0.0.1', 8001) 2013-11-02 08:26:37 [27880] [ERROR] Retrying in 1 second. 2013-11-02 08:26:38 [27880] [ERROR] Connection in use: ('127.0.0.1', 8001) 2013-11-02 08:26:38 [27880] [ERROR] Retrying in 1 second. 2013-11-02 08:26:39 [27880] [ERROR] Connection in use: ('127.0.0.1', 8001) 2013-11-02 08:26:39 [27880] [ERROR] Retrying in 1 second. ^C2013-11-02 08:26:40 [27880] [ERROR] Connection in use: ('127.0.0.1', 8001) 2013-11-02 08:26:40 [27880] [ERROR] Retrying in 1 second. 2013-11-02 08:26:41 [27880] [ERROR] Connection in use: ('127.0.0.1', 8001) 2013-11-02 08:26:41 [27880] [ERROR] Retrying in 1 second. 2013-11-02 08:26:42 [27880] [ERROR] Can't connect to ('127.0.0.1', 8001) user myenv # </code></pre> <p>Other commands I recently used include:</p> <pre><code>python manage.py syncdb python manage.py startapp polls </code></pre> <p>I did 'killall python' to make sure they were not the cause.</p> <p>gunicorn_config.py:</p> <pre><code>command = '/opt/myenv/bin/gunicorn' pythonpath = '/opt/myenv/myProject workers = 1 user = 'tim' </code></pre> <p>myProject.wsgi:</p> <pre><code>import os # os.environ["DJANGO_SETTINGS_MODULE"] = "myProject.settings" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myProject.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application() </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload