diff --git a/app.py b/app.py index 972492b..e0b8b2c 100644 --- a/app.py +++ b/app.py @@ -11,12 +11,17 @@ app = Flask(__name__) app.config['JSON_AS_ASCII'] = False # CORS(app, supports_credentials=True) app.debug = True -load_config() app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///database.db?check_same_thread=False" app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True app.config['SQLALCHEMY_ECHO'] = True db.init_app(app) + +@app.before_first_request +def _load_config(): + load_config() + + app.register_blueprint(view_main_blueprint) app.register_blueprint(api_config_blueprint) app.register_blueprint(api_collector_blueprint)