Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- requirements.txt +4 -0
- run.py +11 -0
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
flask
|
2 |
+
flask_sqlalchemy
|
3 |
+
flask_bcrypt
|
4 |
+
Flask-JWT-Extended
|
run.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from app import create_app
|
2 |
+
from app import db
|
3 |
+
from app.models import Question # ou 'import app.models' selon ton organisation
|
4 |
+
|
5 |
+
app = create_app()
|
6 |
+
|
7 |
+
with app.app_context():
|
8 |
+
db.create_all() # Crée toutes les tables qui n'existent pas encore
|
9 |
+
|
10 |
+
if __name__ == '__main__':
|
11 |
+
app.run(debug=True)
|