mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-05-06 19:14:09 +02:00
Correct type for the directory settings
This commit is contained in:
@@ -4,6 +4,7 @@ import logging
|
|||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
from datetime import UTC, datetime
|
from datetime import UTC, datetime
|
||||||
|
from pathlib import Path
|
||||||
from typing import Annotated, AsyncGenerator, cast
|
from typing import Annotated, AsyncGenerator, cast
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
@@ -36,8 +37,8 @@ class Settings(BaseSettings):
|
|||||||
# inside the codebase
|
# inside the codebase
|
||||||
# static_dir: DirectoryPath = Path('digimarks/static')
|
# static_dir: DirectoryPath = Path('digimarks/static')
|
||||||
# template_dir: DirectoryPath = Path('digimarks/templates')
|
# template_dir: DirectoryPath = Path('digimarks/templates')
|
||||||
static_dir: DirectoryPath = DirectoryPath('digimarks/static')
|
static_dir: DirectoryPath = Path('digimarks/static')
|
||||||
template_dir: DirectoryPath = DirectoryPath('digimarks/templates')
|
template_dir: DirectoryPath = Path('digimarks/templates')
|
||||||
|
|
||||||
media_url: str = '/static/'
|
media_url: str = '/static/'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user