我有 django nonrel 的 appengine 项目。应用引擎 SDK 1.6.6。蟒蛇2.7。我想用
manage.py remote loaddata myfixture
或简单地
将我的开发数据上传到生产服务器manage.py remote shell
,但是我收到了 url 错误(违反协议)。
顺便说一句,我需要在我的 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>