📅  最后修改于: 2022-03-11 15:05:32.352000             🧑  作者: Mango
you must create db with tables before trying to call it.(create database in mysql (create database flask;)first than run flask code)
code to create
>>> from mysqldb import db
>>> db.create_all()