From 6bf3504df1c01ccfa9661dc7366fb4e68375d073 Mon Sep 17 00:00:00 2001 From: mm Date: Sat, 18 Mar 2023 22:49:25 +0000 Subject: [PATCH] Add 'app/init.py' --- app/init.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/init.py diff --git a/app/init.py b/app/init.py new file mode 100644 index 0000000..63db5cc --- /dev/null +++ b/app/init.py @@ -0,0 +1,9 @@ +from flask import Flask +from flask_sqlalchemy import SQLAlchemy + +app = Flask(__name__) +app.config.from_pyfile('config.py') + +db = SQLAlchemy(app) + +from app import routes