build: adds SQLAlchemy ORM

This commit is contained in:
2024-09-22 13:58:36 -03:00
parent 54715ab119
commit d74faad9ec
2 changed files with 8 additions and 1 deletions

5
app.py
View File

@@ -1,7 +1,10 @@
from flask_sqlalchemy import SQLAlchemy
from flask import Flask, render_template
db = SQLAlchemy()
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///adogapet.db"
db.init_app(app)
@app.route("/")
def hello_world():