feat: initial postcard manager - FastAPI + Jinja2 + SQLite

This commit is contained in:
2026-07-05 16:06:03 +08:00
commit 0eca60300f
24 changed files with 1304 additions and 0 deletions

7
app/config.py Normal file
View 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"