simple_podcast/settings.py
2020-02-22 10:20:37 +01:00

12 lines
395 B
Python

from os import environ
from pathlib import Path
from starlette.config import Config
__config = Config(environ.get("SIMPLEPODCAST_CONFIG", ".env"))
UPLOAD_DIR: Path = __config.get("UPLOAD_DIR", Path, "data/uploads")
SQLALCHEMY_DATABASE_URL: str = __config.get(
"UPLOAD_DIR", str, "sqlite:///./data/test.sqlite3"
)
PUBLIC_URL: str = __config.get("PUBLIC_URL", str, "http://localhost:8000")