add flask sqlalchemy

This commit is contained in:
2024-05-19 17:00:44 -06:00
parent 3fdd664bda
commit 0439400ce3
4 changed files with 192 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
from flask import Flask
from .ext import db
def create_app():
app = Flask(__name__)
app.config["A"] = 1
db.init_app(app)
return app

3
teufa/ext.py Normal file
View File

@@ -0,0 +1,3 @@
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()