mirror of
https://github.com/aykhans/portfolio-blog.git
synced 2025-09-10 08:00:44 +00:00
Added delete post page
This commit is contained in:
@@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user