Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions mydjango/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
ALLOWED_HOSTS = [
'localhost',
'35.173.205.86'
'54.202.233.45'
]

# Application definition
Expand Down Expand Up @@ -81,18 +82,18 @@
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases

DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'django_db', # DB명
'USER': 'python', # 데이터베이스 계정
'PASSWORD':'python', # 계정 비밀번호
'HOST':'djangomysql.co3yx3ayxu1q.us-east-1.rds.amazonaws.com', # 데이테베이스 IP
'PORT':'3306', # 데이터베이스 port
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'django_db', # DB명
# 'USER': 'python', # 데이터베이스 계정
# 'PASSWORD':'python', # 계정 비밀번호
# 'HOST':'djangomysql.co3yx3ayxu1q.us-east-1.rds.amazonaws.com', # 데이테베이스 IP
# 'PORT':'3306', # 데이터베이스 port
# }
}


Expand Down