forked from seb_vallee/BillManager
Init project
This commit is contained in:
33
config.py
Normal file
33
config.py
Normal file
@@ -0,0 +1,33 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
app_name: str = "Facturation Association"
|
||||
database_url: str = "sqlite:///./factures.db"
|
||||
|
||||
# Informations de l'association (modifiables via .env)
|
||||
asso_nom: str = "Mon Association"
|
||||
asso_adresse: str = "1 rue de la Paix"
|
||||
asso_code_postal: str = "75001"
|
||||
asso_ville: str = "Paris"
|
||||
asso_email: str = "contact@association.fr"
|
||||
asso_telephone: str = ""
|
||||
asso_siret: str = ""
|
||||
asso_rna: str = "" # Numéro RNA (W...)
|
||||
asso_objet: str = ""
|
||||
asso_iban: str = ""
|
||||
asso_bic: str = ""
|
||||
|
||||
# Numérotation
|
||||
facture_prefix: str = "" # vide = format AAAA-XXXX
|
||||
devis_prefix: str = "DEV"
|
||||
|
||||
# Sécurité sessions (générer avec: python3 -c "import secrets; print(secrets.token_hex(32))")
|
||||
secret_key: str = "changez-moi-en-production"
|
||||
session_max_age: int = 86400 * 7 # 7 jours
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user