报错信息简短版:
OperationalError: (sqlite3.OperationalError) no such table: users
报错信息完整版:
(venv_flask_henry) henry@henry-virtual-machine:~/dev/flask_henry$ python manage.py shell
/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
u
>>> u = User(email='john@example.com', username='john', password='cat')
>>> db.session.add(u)
>>> db.session.commit()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/henry/dev/flask_henry/venv_flask_henry/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", lin