Use local storage for csv

This commit is contained in:
2024-10-20 14:51:15 +02:00
parent 8fe64da6e5
commit b3d8ef6f36
6 changed files with 67 additions and 91 deletions

25
config.py Normal file
View File

@@ -0,0 +1,25 @@
import os
class Config:
# Configuration générale
SECRET_KEY = os.environ.get('SECRET_KEY', 'dev_key')
DEBUG = False
TESTING = False
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379")
class DevelopmentConfig(Config):
DEBUG = True
# Configuration pour le développement local
REDIS_URL = "redis://localhost:6379"
class ProductionConfig(Config):
# Configuration pour la production (Render, etc.)
REDIS_URL = os.environ.get("REDIS_URL")
# Peut désactiver le debug mode pour la prod
DEBUG = False
config = {
'development': DevelopmentConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}