# 这个是app下面的init文件
def create_app():
app = Flask(__name__)
app.config.from_object('app1.secure')
app.config.from_object('app1.setting')
register_blueprint(app)
return app
def register_blueprint(app):
from app1.web.book import web
app.register_blueprint(web)