Some of you may not like using the filesystem for strong data. In
particular that is not a good solution for scalability. Now you can do:
myconf = AppConfig(reload=True)
# always store sessions in cookies
session.connect(request, response, cookie_key=myconf.get('app.cookie_key'))
# store metadata tables in db
db = DAL(myconf.get('db.uri'),
pool_size=myconf.get('db.pool_size'),
migrate_enabled=request.is_local, # trigger a migration when
called locally
fake_migrate_all=request.is_local and request.vars._fake, #
trigger a fake migration when passing ?_fake=1
adapter_args=dict(migrator=InDBMigrator), # store metadata tables
in db itself
check_reserved=['all'])
Notice that if you change your code to do this in an exiting app, you must
run a fake migration.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.