Changes to be committed:

modified:   .env.example
	new file:   compta/__pycache__/__init__.cpython-310.pyc
	new file:   compta/__pycache__/admin.cpython-310.pyc
	new file:   compta/__pycache__/apps.cpython-310.pyc
	new file:   compta/__pycache__/models.cpython-310.pyc
	modified:   compta/admin.py
	new file:   compta/categories_indy.py
	modified:   compta/indy.py
	modified:   compta/management/commands/seed_reference.py
	new file:   compta/migrations/0010_categorie_compte_pcg.py
	modified:   compta/models.py
	modified:   compta/templates/compta/base.html
	new file:   compta/templates/compta/gestion.html
	modified:   compta/urls.py
	new file:   compta/views_gestion.py
	new file:   config/__pycache__/__init__.cpython-310.pyc
	new file:   config/__pycache__/settings.cpython-310.pyc
	modified:   config/settings.py
	modified:   entrypoint.sh
This commit is contained in:
2026-07-11 20:27:51 +02:00
parent 358cf35790
commit 0a4ba2001b
19 changed files with 743 additions and 63 deletions
+10 -2
View File
@@ -4,8 +4,16 @@
# Sécurité Django
DJANGO_SECRET_KEY=change-moi-avec-une-longue-chaine-aleatoire
DJANGO_DEBUG=0
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,192.168.1.50
DJANGO_CSRF_TRUSTED_ORIGINS=http://192.168.1.50:8001
# Domaine Traefik + accès direct éventuel (IP de l'hôte Docker / localhost)
DJANGO_ALLOWED_HOSTS=compta.lespatas.ovh,localhost,127.0.0.1
# Origine HTTPS servie par Traefik — le schéma https:// est OBLIGATOIRE
DJANGO_CSRF_TRUSTED_ORIGINS=https://compta.lespatas.ovh
# Derrière Traefik (reverse-proxy distant qui termine le TLS) : mets 1.
# Django reconnaît alors le HTTPS via X-Forwarded-Proto et sécurise les cookies.
DJANGO_BEHIND_PROXY=1
# Laisse 0 : c'est Traefik qui redirige HTTP->HTTPS.
DJANGO_SSL_REDIRECT=0
# PostgreSQL EXISTANT (ne pas héberger de base ici)
DB_NAME=compta