Skip to content

Commit

Permalink
Chore: 일부 settings 옵션을 환경 변수로 제어 할 수 있도록 수정 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jungmir authored Feb 25, 2025
1 parent 7342905 commit b1b83a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/5.1/ref/settings/
"""

from os import environ
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand All @@ -23,9 +24,9 @@
SECRET_KEY = "django-insecure-)y8gs-x9_4k0)9o#_v+i*2s-%_mwkq%%2eqx#eshs8)^&_0#4k"

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = environ.get("DEBUG", False)

ALLOWED_HOSTS = []
ALLOWED_HOSTS = environ.get("ALLOWED_HOSTS", "").split(",")

# 외부 라이브러리 (Third-party Apps)
THIRD_PARTY_APPS = ["rest_framework", "drf_spectacular", "jazzmin"]
Expand Down

0 comments on commit b1b83a7

Please sign in to comment.