Skip to content

Commit

Permalink
Merge pull request #20 from GDSC-Hongik/feature/setup-db
Browse files Browse the repository at this point in the history
feat: databases 정보 변경
  • Loading branch information
ybkang1108 authored Jul 30, 2024
2 parents 35adc93 + fdcc6fc commit ba58407
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 ba58407

Please sign in to comment.