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)
图片描述
7月老师深入浅出剖析Flask核心机制,和你一起探讨Python高级编程
了解课程