Configure admin title and deploy docs

This commit is contained in:
Your Name
2026-07-28 12:37:04 +05:00
parent bb2c58e02f
commit 3ab8a7b4f2
7 changed files with 68 additions and 88 deletions
+5
View File
@@ -6,6 +6,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
app_env: str = "production"
app_secret_key: str = "change-me"
admin_app_title: str = "Редакторская"
admin_bootstrap_login: str = "admin"
admin_bootstrap_password: str = ""
@@ -37,6 +38,10 @@ class Settings(BaseSettings):
f"@{self.db_host}:{self.db_port}/{self.db_name}"
)
@property
def display_admin_title(self) -> str:
return self.admin_app_title.strip() or "Редакторская"
@property
def vk_storage_owner_id(self) -> int:
return -abs(int(self.vk_storage_group_id))