remodulation du projet et des classes

This commit is contained in:
cedrick2711
2026-07-28 23:33:31 -04:00
parent 90ac3eb804
commit 3feae80767
94 changed files with 2644 additions and 4366 deletions
+26
View File
@@ -0,0 +1,26 @@
"""Entry point for the Team Tryouts application.
Usage (from the project root):
python run.py
Or for production with Waitress:
python app/wsgi.py
"""
import os
import sys
# Ensure the project root is on sys.path so 'app' is importable as a package
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from app.app import create_app
if __name__ == '__main__':
app = create_app()
debug_mode = os.getenv('FLASK_DEBUG', 'false').lower() == 'true'
if debug_mode:
app.logger.warning(
'Running in DEBUG mode with Flask built-in server. '
'This is NOT suitable for production. Use wsgi.py instead.'
)
app.run(debug=debug_mode, host='127.0.0.2', port=5000)