diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-06 22:44:14 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-06 22:44:14 +0200 |
| commit | 218366342a03c9be2075b6d7aec417dd41caf825 (patch) | |
| tree | 0b39d4747090d7ee93394e0a6589e6f2c2dde3ea /app/__init__.py | |
| parent | ceb264b6bdfed8c51e54deed2b6132fecff3934d (diff) | |
Moved a lot of the code into database queries
Diffstat (limited to 'app/__init__.py')
| -rw-r--r-- | app/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/__init__.py b/app/__init__.py index 7b0c03d..2e0a8be 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,7 +1,11 @@ from flask import Flask from app.config import Config +from flask_migrate import Migrate +from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object(Config) +db = SQLAlchemy(app) +migrate = Migrate(app, db) from app import routes |
