在Google App Engine上使用Beaker(Django)

时间:2022-01-17 19:16:29

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.

我们如何使用Beaker在Google App Engine上实施会话? (我说Beaker是因为gmemsess是短暂的,因此不适合)。网上似乎没有例子。

We're using Django 1.1 via App Engine Helper (not app-engine-patch).

我们通过App Engine Helper使用Django 1.1(不是app-engine-patch)。

1 个解决方案

#1


6  

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.

你需要将会话类型指定为'ext:google',就像这样。您还需要编辑beaker / cache.py,删除使用pkg_resources搜索插件的部分,因为App Engine不支持此功能。

#1


6  

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.

你需要将会话类型指定为'ext:google',就像这样。您还需要编辑beaker / cache.py,删除使用pkg_resources搜索插件的部分,因为App Engine不支持此功能。