设置 app.config['SQLALCHEMY_ECHO'] = True
dbfile = config.DB_URL
logger.info("db file: {}".format(dbfile))
#app.config['SQLALCHEMY_ECHO'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = dbfile
db = SQLAlchemy(app)
设置 app.config['SQLALCHEMY_ECHO'] = True
dbfile = config.DB_URL
logger.info("db file: {}".format(dbfile))
#app.config['SQLALCHEMY_ECHO'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = dbfile
db = SQLAlchemy(app)