HiPhone_BE/config/settings/product.py

28 lines
778 B
Python
Raw Permalink Normal View History

2023-04-15 22:49:50 +09:00
from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
2023-10-17 04:03:13 +09:00
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ")
2023-04-15 22:49:50 +09:00
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS").split(" ")
2023-11-14 21:22:30 +09:00
CSRF_COOKIE_DOMAIN = os.environ.get("CSRF_COOKIE_DOMAIN")
CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ")
2023-04-15 22:49:50 +09:00
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": os.environ.get("DB_ENGINE"),
"NAME": os.environ.get("DB_NAME"),
"USER": os.environ.get("DB_USER"),
"PASSWORD": os.environ.get("DB_PW"),
"HOST": os.environ.get("DB_HOST"),
"PORT": os.environ.get("DB_PORT"),
}
}