2023-06-13 19:14:02 +00:00
|
|
|
import os
|
2023-06-13 18:35:41 +00:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
|
|
|
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
|
|
SECRET_KEY = "django-insecure-e*p%e)pwf+-ntt4wpn-^^7-0yq)!cjo*om18vy77-=*c0jjfqa"
|
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
2023-06-13 19:14:02 +00:00
|
|
|
DEBUG = True
|
2023-06-13 18:35:41 +00:00
|
|
|
|
2023-06-13 19:14:02 +00:00
|
|
|
ALLOWED_HOSTS = os.environ.get("DJANGO_HOST").split(",")
|
|
|
|
CSRF_TRUSTED_ORIGINS = [
|
|
|
|
"https://" + host for host in os.environ.get("DJANGO_HOST").split(",")
|
|
|
|
]
|
2023-06-13 18:35:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Database
|
|
|
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
"default": {
|
|
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
|
|
"NAME": "/data/db.sqlite3",
|
|
|
|
}
|
|
|
|
}
|
2023-08-24 18:58:22 +00:00
|
|
|
|
2023-08-24 18:59:18 +00:00
|
|
|
EDIA_ROOT = "/data/media"
|
2023-08-24 18:58:22 +00:00
|
|
|
MEDIA_URL = "/media/"
|