Re: [web2py] Troubles with index action
You can try def index(): >''' >>>> db.news.insert(title="Test", body="Test-test") > >>> db.commit() > >''' >return dict(table="news") > sqlite locks on multiple connections.
[web2py] Troubles with index action
This is my code. I specifically made it so primitive. def index(): ''' >>> db.news.insert(title="Test", body="Test-test") ''' return dict(table="news") Next code is my db: db.define_table('news', Field('title'), Field('body', 'text'), Field('created_at',