Update project echo files

This commit is contained in:
Anismahi
2026-03-19 07:28:11 +01:00
parent 93409b6f71
commit 17026018a9
14 changed files with 1397 additions and 223 deletions

10
config.py Normal file
View File

@@ -0,0 +1,10 @@
import os
class Config:
# S'il trouve la variable Docker, il l'utilise. Sinon, il met "localhost" par défaut.
DB_HOST = os.environ.get("DB_HOST", "localhost")
DB_PORT = os.environ.get("DB_PORT", "5432")
DB_NAME = os.environ.get("DB_NAME", "ecocharge")
DB_USER = os.environ.get("DB_USER", "ecocharge_user")
DB_PASSWORD = os.environ.get("DB_PASSWORD", "ecocharge_password")
SECRET_KEY = os.environ.get("SECRET_KEY", "cle_par_defaut")