Skip to content

Commit

Permalink
feat: databases 정보 변경
Browse files Browse the repository at this point in the history
기존에 세팅해둔 mysql에서 rds 사용한 db로 변경하였고 관련된 settings.py 정보 수정
  • Loading branch information
ybkang1108 committed Jul 30, 2024
1 parent 35adc93 commit fdcc6fc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mustgou/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from pathlib import Path, os
from decouple import config


# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

Expand All @@ -24,7 +25,7 @@
SECRET_KEY = config("SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True

ALLOWED_HOSTS = ["*", ".pythonanywhere.com"]

Expand Down Expand Up @@ -84,11 +85,12 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "MustGoU",
"USER": "root",
"NAME": "mugou",
"USER": "mugou",
"PASSWORD": config("DB_PASSWORD"),
"HOST": "192.168.219.107",
"HOST": "mugou.cja0koqyuu4d.ap-northeast-2.rds.amazonaws.com",
"PORT": "3306",
"OPTIONS": {"init_command": 'SET sql_mode="STRICT_TRANS_TABLES"'},
}
}

Expand Down

0 comments on commit fdcc6fc

Please sign in to comment.