From de87242a15915e37f90ecf82940d8e1c48eb0cd5 Mon Sep 17 00:00:00 2001 From: Ellie Date: Wed, 13 Jul 2022 17:44:00 +0900 Subject: [PATCH] connect RDS --- backend/backend/settings.py | 15 ++++++++------- frontend/package-lock.json | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/backend/backend/settings.py b/backend/backend/settings.py index d8d92b5..20ed74a 100644 --- a/backend/backend/settings.py +++ b/backend/backend/settings.py @@ -1,6 +1,10 @@ from pathlib import Path from django.urls import URLPattern +import my_settings ##추가 + +import pymysql +pymysql.install_as_MySQLdb() # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -9,7 +13,8 @@ # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-f9xp3)ophury8s6kxm@j)@i+vo&wbai&=)=cc2qo5ns44@5^da' + +SECRET_KEY = my_settings.SECRET # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True @@ -63,12 +68,8 @@ # Database # https://docs.djangoproject.com/en/4.0/ref/settings/#databases -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', - } -} + +DATABASES = my_settings.DB_setting # Password validation # https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators diff --git a/frontend/package-lock.json b/frontend/package-lock.json index fd4962a..6398b6e 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -16154,6 +16154,19 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -28663,6 +28676,12 @@ "is-typedarray": "^1.0.0" } }, + "typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "peer": true + }, "unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",