Use local storage for csv
This commit is contained in:
25
config.py
Normal file
25
config.py
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user