web2py auto_import vs define_table
问题 The documentation we can use auto_import if we "need access to the data but not to he web2py table attributes", but this code seems to use the table attributes just fine. from gluon import DAL, Field db = DAL('sqlite://storage.sqlite', auto_import=True) for row in db(db.person).select(): print row.name The table was defined in a previous run. db = DAL('sqlite://storage.sqlite', auto_import=True) db.define_table('person', Field('name')) db.person[0] = {'name' : 'dave'} db.commit() Doing both