2012-07-03 77 views
0

我有我的appengine项目与Django nonrel。 App引擎SDK 1.6.6。 python2.7。 我要上传我的开发数据到生产服务器 manage.py remote loaddata myfixture 或简单地说, manage.py remote shell, 但我得到的URL错误(违反协议)。django nonrel应用程序引擎无法连接到远程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> 
+0

我不知道是否仍然支持django-nonrel:http://www.allbuttonspressed.com/goodbye – matcheek

+0

感谢您指出。好难过。 – sfdye

+0

你有没有在本地试过dumpdata/loaddata文件?如果您有任何不可序列化的数据,它可能会引发错误。 – dragonx

回答

0

我认为这是一个时间问题。这可能是由于网络连接速度较慢而导致超时。

+0

我猜不是。我已经测试了整整一周,并得到了同样的错误。 – sfdye

0

请在这里发布整个app.yaml文件。

这个错误似乎是问题是文件路径中的app.yaml文件。检查处理程序中的所有文件目录。删除目录名称后的'/'。

相关问题