I'm building an app that connects to the twitter APIs, the code runs well on localhost, but on pythonanywhere it gives me this:
Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/home/iahvector/twitterWebApp/TwitterWebApp/twitterApp/views.py" in index
26. resp, content = client.request(settings.REQUEST_TOKEN_URL, "GET")
File "/usr/local/lib/python2.7/site-packages/oauth2/__init__.py" in request
682. connection_type=connection_type)
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py" in request
1597. (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py" in _request
1345. (response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py" in _conn_request
1281. conn.connect()
File "/usr/local/lib/python2.7/site-packages/httplib2/__init__.py" in connect
1052. raise socket.error, msg
Exception Type: error at /
Exception Value: [Errno 111] Connection refused
When I checked error.log, nothing appears there.