""" Café Bach Email Generator - Configuration """ import os class Config: """Base configuration.""" SECRET_KEY = os.environ.get('SECRET_KEY', 'dev-secret-key-change-in-production') SQLALCHEMY_TRACK_MODIFICATIONS = False class DevelopmentConfig(Config): """Development configuration.""" DEBUG = True class TestingConfig(Config): """Testing configuration.""" TESTING = True SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:' WTF_CSRF_ENABLED = False class ProductionConfig(Config): """Production configuration.""" DEBUG = False config = { 'development': DevelopmentConfig, 'testing': TestingConfig, 'production': ProductionConfig, 'default': DevelopmentConfig, } """ Application Configuration """ import os class Config: """Base configuration""" SECRET_KEY = os.environ.get('SECRET_KEY', 'dev-secret-key-change-in-production') UPLOAD_FOLDER = 'uploads' MAX_CONTENT_LENGTH = 16 * 1024 * 1024 # 16MB max file size class DevelopmentConfig(Config): """Development configuration""" DEBUG = True class TestingConfig(Config): """Testing configuration""" TESTING = True DEBUG = True class ProductionConfig(Config): """Production configuration""" DEBUG = False