feat: initial postcard manager - FastAPI + Jinja2 + SQLite
This commit is contained in:
7
app/config.py
Normal file
7
app/config.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
DATABASE_URL = f"sqlite:///{BASE_DIR / 'postcard.db'}"
|
||||
UPLOAD_DIR = BASE_DIR / "uploads"
|
||||
SECRET_KEY = "postcard-manager-secret-change-in-production"
|
||||
SESSION_COOKIE_NAME = "pc_session"
|
||||
Reference in New Issue
Block a user