在 Google App Engine (Django) 上使用 Beaker

发布于 2024-08-17 04:26:57 字数 158 浏览 12 评论 0原文

我们如何使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

从此见与不见 2024-08-24 04:26:57

您需要将会话类型指定为“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文