Skip to content

Commit

Permalink
refactor: 인코딩 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchef1 committed May 12, 2024
1 parent 5d311de commit 731527e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions my_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def get_secret(setting, secrets=secrets):
'PASSWORD': get_secret("DB_PASSWORD"),
'HOST': get_secret("DB_HOST"),
'PORT': '3306',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
'charset': 'utf8mb4',
'use_unicode': True,
},
},
'chunghaha' : {
'ENGINE': 'django.db.backends.mysql',
Expand All @@ -33,6 +38,11 @@ def get_secret(setting, secrets=secrets):
'PASSWORD': get_secret("DB_PASSWORD"),
'HOST': get_secret("DB_HOST"),
'PORT': '3306',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
'charset': 'utf8mb4',
'use_unicode': True,
},
},
'chunghaha-dev': {
'ENGINE': 'django.db.backends.mysql',
Expand All @@ -41,5 +51,10 @@ def get_secret(setting, secrets=secrets):
'PASSWORD': get_secret("DB_PASSWORD"),
'HOST': get_secret("DB_HOST"),
'PORT': '3306',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
'charset': 'utf8mb4',
'use_unicode': True,
},
},
}

0 comments on commit 731527e

Please sign in to comment.