2022/1/22
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
from flask import Flask
|
||||
|
||||
from entrance.extend.restx import sys
|
||||
# from entrance.extensions import init_extensions
|
||||
from entrance import config
|
||||
from entrance.bps import sys, register_parent_bp
|
||||
|
||||
|
||||
from entrance.extensions import init_extensions
|
||||
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
app.register_blueprint(sys)
|
||||
# init_extensions(app)
|
||||
app.config.from_pyfile('config.py')
|
||||
register_parent_bp(app)
|
||||
init_extensions(app)
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user