from app import create_app from app import db from app.models import Question # ou 'import app.models' selon ton organisation app = create_app() with app.app_context(): db.create_all() # Crée toutes les tables qui n'existent pas encore if __name__ == '__main__': app.run(debug=True)