在 Google App Engine (Django) 上使用 Beaker
我们如何使用 Beaker 在 Google App Engine 上实现会话? (我说 Beaker 因为 gmemsess 是短暂的,因此不适合)。网上好像没有例子。
我们通过 App Engine Helper(不是 app-engine-patch)使用 Django 1.1。
How do we use Beaker to implement sessions on Google App Engine? (I say Beaker because gmemsess is short-lived, and therefore not suitable). There seem to be no examples online.
We're using Django 1.1 via App Engine Helper (not app-engine-patch).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将会话类型指定为“ext:google”,例如 这个。您还需要编辑 beaker/cache.py,删除使用 pkg_resources 搜索插件的部分,因为 App Engine 不支持此功能。
You need to specify the session type as 'ext:google', like this. You also need to edit beaker/cache.py, deleting the section that uses pkg_resources to search for plugins, as this isn't supported on App Engine.