Skip to content

Commit 2e279fd

Browse files
authored
Merge pull request #134 from pythonkr/devdev
운영 DB 커넥터 변경
2 parents 9965815 + 4211e75 commit 2e279fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyconkr/settings-prod.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import os
22

3+
import pymysql
4+
35
from pyconkr.settings import *
46

7+
pymysql.install_as_MySQLdb()
8+
59
DEBUG = False
610

711
ALLOWED_HOSTS += [
@@ -11,7 +15,8 @@
1115
# RDS
1216
DATABASES = {
1317
"default": {
14-
"ENGINE": "mysql.connector.django",
18+
# "ENGINE": "mysql.connector.django",
19+
"ENGINE": "django.db.backends.mysql",
1520
"NAME": os.getenv("AWS_RDS_DATABASE"),
1621
"USER": os.getenv("AWS_RDS_USER_ID"),
1722
"PASSWORD": os.getenv("AWS_RDS_PW"),

0 commit comments

Comments
 (0)