new base for gitea
This commit is contained in:
6
backend/config/settings.py
Executable file → Normal file
6
backend/config/settings.py
Executable file → Normal file
@@ -8,7 +8,7 @@ class Settings:
|
||||
# Environnement - OBLIGATOIRE
|
||||
ENVIRONMENT: str = os.getenv("ENVIRONMENT")
|
||||
if not ENVIRONMENT:
|
||||
raise ValueError("ENVIRONMENT variable is required. Use .env.local, .env.development, or .env.production")
|
||||
raise ValueError("ENVIRONMENT variable is required. Use development or production")
|
||||
|
||||
# Debug et reload
|
||||
DEBUG: bool = os.getenv("DEBUG", "false").lower() == "true"
|
||||
@@ -106,10 +106,6 @@ try:
|
||||
settings = Settings()
|
||||
except ValueError as e:
|
||||
print(f"❌ Erreur de configuration: {e}")
|
||||
print("💡 Assurez-vous d'utiliser un fichier d'environnement spécifique:")
|
||||
print(" - .env.local pour le développement local")
|
||||
print(" - .env.development pour l'environnement de développement")
|
||||
print(" - .env.production pour la production")
|
||||
raise
|
||||
|
||||
# Validation automatique au démarrage
|
||||
|
||||
Reference in New Issue
Block a user