It was due to how I defined relationships between tables.
e.g.
db.define_table('table_name_1', Field('name'))
# this is what caused the problem
db.define_table('table_name'_2, 'reference db.table_name_1',
Field('another_name')
# this is ok
db.define_table('table_name'_2, db.table_name_1, Field('another_name')
On Thursday, April 9, 2015 at 11:37:21 PM UTC+10, 黄祥 wrote:
>
> i think it related with your db configuration.
> e.g.
> db = DAL(myconf.take('db.uri'), pool_size = myconf.take('db.pool_size',
> cast = int),
> check_reserved = ['all'], migrate = True, fake_migrate_all = False,
> lazy_tables = True)
>
> best regards,
> stifan
>
>>
--
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.