web2py / py4web

Other
244 stars 126 forks source link

Catch initializing errors with the shell #867

Closed nicozanf closed 4 months ago

nicozanf commented 4 months ago

If the shell is run and a from apps.showcase.examples.common import db issued (as explained in the docs) before running once a py4web run apps, the db in the showcase/example is not created correctly - and a strange "sqlite3.OperationalError: no such table: person" error is shown.

It's not usual, but quite misleading. This explain it and simply show how to fix it.