Added delete post page

This commit is contained in:
2023-09-13 23:26:06 +04:00
parent c0942490c8
commit 0daa6af899
15 changed files with 205 additions and 49 deletions

View File

@@ -30,6 +30,10 @@ class Settings(BaseSettings):
POSTGRES_PORT: int = 5432
POSTGRES_DB: str
@property
def LOGIN_URL(self) -> str:
return self.SECRET_KEY[-10:]
def get_postgres_dsn(self, _async: bool=False) -> PostgresDsn:
scheme = 'postgresql+asyncpg' if _async else 'postgresql'