Initial App Commit with Login and Auth

This commit is contained in:
2025-02-11 02:16:46 +01:00
parent 8d88d265a8
commit 348f95d4f5
17 changed files with 927 additions and 3 deletions

11
app/models/__init__.py Normal file
View File

@ -0,0 +1,11 @@
from flask_sqlalchemy import SQLAlchemy
import os
import importlib
db = SQLAlchemy()
models_dir = os.path.dirname(__file__)
for filename in os.listdir(models_dir):
if filename.endswith('.py') and filename != '__init__.py':
module_name = f'app.models.{filename[:-3]}'
importlib.import_module(module_name)