diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..070eb7f --- /dev/null +++ b/.gitignore @@ -0,0 +1,54 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# Environnement virtuel +venv/ +env/ +ENV/ + +# Base de données +*.db +*.sqlite +*.sqlite3 + +# Logs +*.log + +# Docker +.dockerignore + +# IDE +.vscode/ +.idea/ +*.swp +*.swo + +# OS +.DS_Store +Thumbs.db + +# Static uploads (optionnel - garder les images uploadées) +# static/uploads/ + diff --git a/README.md b/README.md new file mode 100644 index 0000000..213b4a5 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# 🎄 Calendrier de l'Avent - Tirage Aléatoire Multi-Projets + +Application web Flask + SQLite pour organiser des calendriers de l'Avent avec tirage aléatoire équitable. + +[](https://hub.docker.com/) +[](https://python.org/) +[](https://flask.palletsprojects.com/) + +## ✨ Fonctionnalités + +- **Multi-projets** : Créez plusieurs calendriers indépendants +- **Tirage équitable** : Calcul automatique des quotas par participant +- **Rattrapage magique** : Bouton "Rattraper X jours manquants" +- **Upload images** : Illustration personnalisée par projet +- **Import CSV** : Chargez vos participants en masse +- **Admin complet** : Gestion utilisateurs/projets +- **Thème Noël** : Interface festive et responsive +- **Docker** : Déploiement 1-clic + +## 🚀 Installation rapide (Docker) + + diff --git a/templates/public_project_view.html b/templates/public_project_view.html new file mode 100644 index 0000000..42d549d --- /dev/null +++ b/templates/public_project_view.html @@ -0,0 +1,145 @@ + + +
+ +{{ project.description }}
+ {% endif %} +Aucun tirage effectué
+| Participant | +Tirages | +Restant | +
|---|---|---|
| {{ stat.name }} | +{{ stat.draws }} | +{{ stat.max_draws - stat.draws }} | +
Découvrez tous les calendriers disponibles
+{{ project.description }}
+ {% endif %} + +