Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
python:flask:setup_nouveau_projet [2021/12/15 06:01] marclebrun [Configuration de l'application] |
python:flask:setup_nouveau_projet [2022/10/19 14:25] (Version actuelle) marclebrun [Application de base] |
||
---|---|---|---|
Ligne 35: | Ligne 35: | ||
flask --version | flask --version | ||
- | Python 3.8.5 | + | Python 3.10.6 |
- | Flask 1.1.2 | + | Flask 2.2.2 |
- | Werkzeug 1.0.1 | + | Werkzeug 2.2.2 |
</code> | </code> | ||
Ligne 59: | Ligne 59: | ||
├── .env | ├── .env | ||
├── .gitignore | ├── .gitignore | ||
- | ├── requirements.txt | + | └── requirements.txt |
- | └── run.py | + | |
</code> | </code> | ||
Ligne 66: | Ligne 65: | ||
<code bash .env> | <code bash .env> | ||
- | FLASK_APP = app | + | FLASK_APP = app |
- | FLASK_ENV = development | + | FLASK_DEBUG = 1 |
- | DEBUG = True | + | |
</code> | </code> | ||
Ligne 107: | Ligne 105: | ||
<code bash> | <code bash> | ||
git init | git init | ||
- | git add . | + | git add --all |
git commit -m "Initial commit" | git commit -m "Initial commit" | ||
</code> | </code> |