Spaces:
Sleeping
Sleeping
Caner Giden commited on
Update config.py
Browse files1234567891011121314151617181920212223242526272829303132333435# app/config.pyimport osfrom pydantic_settings import BaseSettings, SettingsConfigDictclass Settings(BaseSettings):APP_NAME: str = "FlowMind Core API"APP_VERSION: str = "1.0.0"# ===========================# Database (SQLite)# ===========================DATABASE_URL: str = "sqlite:///./data/flowmind.db"# ===========================# RESEND Email Settings# ===========================RESEND_API_KEY: str | None = os.getenv("RESEND_API_KEY")RESEND_FROM_EMAIL: str = os.getenv("RESEND_FROM_EMAIL", "onboarding@resend.dev")@propertydef EMAIL_ENABLED(self) -> bool:"""Email gönderimi aktif mi?"""return bool(self.RESEND_API_KEY)# .env desteği açık kalsın (lokalde istersen kolay olur)model_config = SettingsConfigDict(env_file=".env",env_file_encoding="utf-8",)settings = Settings()123456789101112131415161718# app/config.pyimport osfrom pydantic_settings import BaseSettingsclass Settings(BaseSettings):# Uygulama bilgileriAPP_NAME: str = "FlowMind Core API"APP_VERSION: str = "1.0.0"# ===========================# Database (SQLite)# ===========================# Varsayılan: ./data/flowmind.dbDATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///./data/flowmind.db")settings = Settings()
app/config.py+4-21