"""Application configuration settings.""" import os from dotenv import load_dotenv # Load .env from project root (if present) load_dotenv() class BaseConfig: """Base configuration shared by all environments.""" SECRET_KEY = os.getenv("SECRET_KEY", "dev-secret-key") DEBUG = False TESTING = False class DevelopmentConfig(BaseConfig): """Development configurations.""" DEBUG = True class ProductionConfig(BaseConfig): """Production configurations.""" DEBUG = False class TestingConfig(BaseConfig): """Testing configurations.""" TESTING = True DEBUG = True config = { "development": DevelopmentConfig, "production": ProductionConfig, "testing": TestingConfig, "default": DevelopmentConfig, }