phd-site/phd_site/settings.prod.py
2024-11-13 12:18:55 +01:00

22 lines
500 B
Python

from pathlib import Path
from .settings_base import *
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "blah" # FIXME
DEBUG = True # FIXME
ALLOWED_HOSTS = []
# Database
# https://docs.djangoproject.com/en/5.1/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
}
PUBLIC_ROOT: Path = Path(__file__).absolute().parent.parent.parent
STATIC_ROOT = (PUBLIC_ROOT / "static").as_posix()