Lerndatenbank/lernplattform/__init__.py

9 lines
250 B
Python
Raw Normal View History

2024-08-05 20:43:29 +02:00
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///learn.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
import lernplattform.routes