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 auto_import=True and the define_table gives an error about "invalid table name". Doing neither gives an