无法映射到数据库中,请老师解答
来源:4-9 将模型映射到数据库中
怕几眼
2019-03-29
C:\Users\Lenovo.virtualenvs\fisher-tWvItlAu\Scripts\python.exe C:\Users\Lenovo\Desktop\fisher\app\libs\fisher.py
C:\Users\Lenovo.virtualenvs\fisher-tWvItlAu\Scripts\python.exe: can’t open file ‘C:\Users\Lenovo\Desktop\fisher\app\libs\fisher.py’: [Errno 2] No such file or directory
Process finished with exit code 2
from flask import Flask
from app.models.book import db
def create_app():
app = Flask(name)
app.config.from_object(‘app.secure’)
app.config.from_object(‘app.setting’)
register_blueprint(app)
db.init_app(app)
db.create_all(app=app)
return app
def register_blueprint(app):
from app.web.book import web
app.register_blueprint(web)
图片描述
写回答
1回答
-
7七月
2019-03-29
这个已经提示你找不到文件了,是不是哪里路径写错了。检查下。
052019-03-31
相似问题