remodulation du projet en POO et changement de l'organisation des fichiers
This commit is contained in:
+2
-2
@@ -342,8 +342,8 @@ def create_app():
|
||||
# Database Initialization
|
||||
# =========================================================================
|
||||
with app.app_context():
|
||||
import app.models as models # noqa: F401 — registers all models with SQLAlchemy
|
||||
from app.models import User
|
||||
import app.models.models as models # noqa: F401 — registers all models with SQLAlchemy
|
||||
from app.models.models import User
|
||||
db.create_all()
|
||||
|
||||
# Seed database if empty
|
||||
|
||||
Reference in New Issue
Block a user