From a0b21fd9d712a2d9df98a6b6b896245fb1998747 Mon Sep 17 00:00:00 2001 From: jungeun Date: Thu, 25 Jan 2024 23:36:10 +0900 Subject: [PATCH] =?UTF-8?q?bug:=20settings.py=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/settings.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/backend/settings.py b/backend/settings.py index aab153e..9cbcbf4 100644 --- a/backend/settings.py +++ b/backend/settings.py @@ -145,16 +145,16 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', - 'NAME': os.environ.get('DATABASE_NAME', 'default_db_name'), - 'USER': os.environ.get('DATABASE_USER', 'default_user'), - 'PASSWORD': os.environ.get('DATABASE_PASSWORD', 'default_password'), - 'HOST': os.environ.get('DATABASE_HOST', 'localhost'), - 'PORT': os.environ.get('DATABASE_PORT', '3306'), + 'NAME': os.environ.get('DATABASE_NAME'), + 'USER': os.environ.get('DATABASE_USER'), + 'PASSWORD': os.environ.get('DATABASE_PASSWORD'), + 'HOST': os.environ.get('DATABASE_HOST'), + 'PORT': os.environ.get('DATABASE_PORT'), } } -DATABASE_URL = os.environ.get('DATABASE_URL', "default_database_url") -SECRET_KEY = os.environ.get('SECRET_KEY', 'default_secret_key') +DATABASE_URL = os.environ.get('DATABASE_URL') +SECRET_KEY = os.environ.get('SECRET_KEY') # Password validation # https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators @@ -226,6 +226,4 @@ DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' MEDIA_URL = f'https://{AWS_S3_CUSTOM_DOMAIN}/' -#정적 파일 불러오기 -STATIC_URL = 'static/' STATIC_ROOT = os.path.join(BASE_DIR, '_static')