django nonrel app引擎无法连接到远程shell

时间:2012-07-03 16:19:20

标签: django google-app-engine django-nonrel djangoappengine

我有django nonrel的appengine项目。 App引擎SDK 1.6.6。 python2.7。 我想将我的开发数据上传到生产服务器 manage.py remote loaddata myfixture 或简单地说, manage.py remote shell, 但我得到了网址错误(违反协议)。

顺便问一下,我是否需要在app.yaml中设置django版本,或者只是将其留空并使用nonrel django?

信息如下:

INFO     2012-07-03 23:34:40,720 stubs.py:79] Setting up remote_api for "xxx" at https://xxx.appspot.com/_ah/remote_api
Connecting to remote_api handler.

IMPORTANT: Check your login method settings in the App Engine Dashboard if you h
ave problems logging in. Login is only supported for Google Accounts.

INFO     2012-07-03 23:34:40,884 appengine_rpc.py:466] Loaded authentication coo
kies from C:\Users\xxx/.appcfg_cookies
INFO     2012-07-03 23:34:40,885 appengine_rpc.py:160] Server: xxx.app
spot.com
Traceback (most recent call last):
  File "C:\Users\xxx\git\django-project\manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Users\xxx\git\django-project\django\core\management\__init__.py",
line 438, in execute_manager
    utility.execute()
  File "C:\Users\xxx\git\django-project\django\core\management\__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\xxx\git\django-project\djangoappengine\management\commands\r
emote.py", line 15, in run_from_argv
    stub_manager.setup_remote_stubs(connection)
  File "C:\Users\xxx\git\django-project\djangoappengine\db\stubs.py", line 89
, in setup_remote_stubs
    rpc_server_factory=rpc_server_factory)
  File "C:\Program Files\Google\google_appengine\google\appengine\ext\remote_api
\remote_api_stub.py", line 682, in ConfigureRemoteApi
    app_id = GetRemoteAppIdFromServer(server, path, rtok)
  File "C:\Program Files\Google\google_appengine\google\appengine\ext\remote_api
\remote_api_stub.py", line 525, in GetRemoteAppIdFromServer
    response = server.Send(path, payload=None, **urlargs)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengin
e_rpc.py", line 366, in Send
    f = self.opener.open(req)
  File "C:\Python27\lib\urllib2.py", line 400, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 418, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "C:\Program Files\Google\google_appengine\lib\fancy_urllib\fancy_urllib\_
_init__.py", line 367, in do_open
    raise url_error
urllib2.URLError: <urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation
 of protocol>

2 个答案:

答案 0 :(得分:0)

我认为这是暂时的问题。由于互联网连接速度慢,可能是因为超时而导致的。

答案 1 :(得分:0)

请在此处发布整个app.yaml文件。

此错误似乎问题是文件路径中的app.yaml文件。检查处理程序中的所有文件目录。删除&#39; /&#39;在目录名称之后。