我正在尝试在烧瓶中配置数据库,但是每当我运行该应用程序时都会出现错误:- ImportError:没有名为 flask_peewee.db 的模块
from flask import Flask
from flask_peewee.db import Database
app = Flask(__name__)
app.config.from_object(__name__)
DATABASE = {
'name': 'flasktesting.db',
'engine': 'peewee.SqliteDatabase',
}
DEBUG = True
SECRET_KEY = 'ssshhhh'
app = Flask(__name__)
app.config.from_object(__name__)
# instantiate the db wrapper
db = Database(app)
@app.route('/')
def Hello_World():
return ' Are You Ready !!!!!!!!'
if __name__ == '__main__':
app.run()