I found this way to deploying my app made with Django. I´ve followed step by step, and I think i´m one step to the end. In localhost, the development, runs perfectly. But here, at my web, i found this error:
[Errno 111] Connection refused
Request Method: GET Request URL: http://javiramone.pythonanywhere.com/ Django Version: 1.3.7 Exception Type: error Exception Value:
[Errno 111] Connection refused
Exception Location: /usr/lib/python2.7/socket.py in create_connection, line 571 Python Executable: /usr/local/bin/uwsgi
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
And the last Traces looks like:
/home/javiramone/.local/lib/python2.7/site-packages/couchdb/http.py in get
if scheme == 'http':
cls = HTTPConnection
elif scheme == 'https':
cls = HTTPSConnection
else:
raise ValueError('%s is not a supported scheme' % scheme)
conn = cls(host, timeout=self.timeout)
conn.connect()
...
return conn
def release(self, url, conn):
scheme, host = urlsplit(url, 'http', False)[:2]
self.lock.acquire()
▶ Local vars /usr/lib/python2.7/httplib.py in connect
if line == '\r\n':
break
def connect(self):
"""Connect to the host and port specified in __init__."""
self.sock = socket.create_connection((self.host,self.port),
self.timeout, self.source_address)
...
if self._tunnel_host:
self._tunnel()
def close(self):
"""Close the connection to the HTTP server."""
▶ Local vars /usr/lib/python2.7/socket.py in create_connection
except error as _:
err = _
if sock is not None:
sock.close()
if err is not None:
raise err
...
else:
raise error("getaddrinfo returns an empty list")
I´ve installed CouchDB without any problem (my DB is hosted on iriscouch) and the app get into it with this
from couchdb import Server
from couchdb import ResourceNotFound
SERVER = Server('http://admin:empresadigitala@programs.iriscouch.com/'
It may be that with my free account, i can´t connect with iriscouch?
Thanks for your helping