"在Python运行时,我们添加了对Python SSL库的支持,因此您现在可以打开与Apple的Push Notification服务等远程服务的安全连接."
此引用来自Google App Engine博客上的最新帖子.
如果要使用本机python ssl,则必须使用应用程序的app.yaml文件中的库配置启用它,在该文件中指定库名称"ssl"...
这些说明是通过Google App Engine文档为开发人员提供的.
以下行已添加到app.yaml文件中:
libraries:
- name: ssl
version: latest
Run Code Online (Sandbox Code Playgroud)
这与Google App Engine文档中提供的建议一致.
我试过用三种不同的配置来运行我的项目.两个正在工作,一个不工作.
将我的应用程序上传到Google App Engine并通过实时服务器运行我的项目后,一切正常.
当我在我的项目中运行manage.py runserver并包含Google App Engine SKD时PYTHONPATH,一切正常.
但是,当我运行我的项目时dev_appserver.py,我收到以下错误:
ImportError at /
No module named _ssl
Request Method: GET
Request URL: http://localhost:8080/
Django Version: 1.4.3
Exception Type: ImportError
Exception Value:
No module named _ssl
Exception Location: /usr/local/lib/google_appengine_1.7.7/google/appengine/tools/devappserver2/python/sandbox.py in load_module, line …Run Code Online (Sandbox Code Playgroud)