Implemented basic models

This commit is contained in:
Jurn Wubben 2025-05-19 22:47:45 +02:00
parent 6bceef1664
commit 3ba6099976
16 changed files with 257 additions and 24 deletions

View file

@ -2,12 +2,9 @@ from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Configuration of application, see configuration.py, choose one and uncomment.
# app.config.from_object('configuration.ProductionConfig')
app.config.from_object("app.configuration.DevelopmentConfig")
# app.config.from_object('configuration.TestingConfig')
db = SQLAlchemy(app) # flask-sqlalchemy
from app import views, models
with app.app_context():
db.create_all()