用于flup会话中间件的数据库存储。
dbstore的Python项目详细描述
此分发版使用符合PEP 249
的数据库包和flup.middleware.session提供数据库支持的存储。
提供用于为wsgi应用程序提供mysqldb或psycopg2的存储和装饰器
支持的会话。其他后端很容易连接。
@mysql会话器(user='foo',passwd='bar',db='baz',host='localhost')
def some_wsgi_app(environ,start_response):
…
您需要一个带有会话表的数据库:
create table sessions(
id varchar(32)not null,
接触浮点,
pickle longtext,
主键(id);
的数据库包和flup.middleware.session提供数据库支持的存储。
提供用于为wsgi应用程序提供mysqldb或psycopg2的存储和装饰器
支持的会话。其他后端很容易连接。
@mysql会话器(user='foo',passwd='bar',db='baz',host='localhost')
def some_wsgi_app(environ,start_response):
…
您需要一个带有会话表的数据库:
create table sessions(
id varchar(32)not null,
接触浮点,
pickle longtext,
主键(id);