found the solutions: in* auth.extra_fields* there are some tables that are reference to other tables. so I moved this settings and the
auth.define_tables(username=False, signature=False) at the bottom. Seems that resolved all the troubles. 2018-02-09 13:42 GMT+01:00 Marvi Benedet <ma...@marvi.it>: > I'm trying it on a more complex application, where I have also some extra > fields in the users table: > > auth.settings.extra_fields['users']= [.....] > > but unfortunatly this could be the cause that lead to problems... > > By the way, is there a way to check if the current state of tables/fields > on the db is matching what is defined in the web2py model? > After some tests with "fake_migrate" It's easy to loose the match.. > > Thanks! > > 2018-02-08 16:55 GMT+01:00 Marvi Benedet <ma...@marvi.it>: > >> Yes, It worked! >> >> thanks! >> >> 2018-02-07 17:14 GMT+01:00 Leonel Câmara <leonelcam...@gmail.com>: >> >>> This is sort of a bug, but one that is probably kept for backwards >>> compatibility reasons. >>> >>> You can make your example code work by doing this: >>> >>> auth = Auth(db, host_names=configuration.get('host.names'), signature= >>> False) >>> auth.settings.table_user_name = 'users' >>> auth.define_tables(username=False, signature=False) # this also calls >>> define_signature >>> >>> db.define_table('tests', >>> Field('name', length=100, requires=IS_NOT_EMPTY()), >>> auth.signature, >>> format='%(name)s', >>> ) >>> >>> >>> -- >>> 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 web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.