Skip to content

Commit 7b7a4cb

Browse files
committed
운영 DB 커넥터 변경
1 parent 2a7f6bb commit 7b7a4cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyconkr/settings-prod.py

Lines changed: 5 additions & 0 deletions
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,6 +15,7 @@
1115
# RDS
1216
DATABASES = {
1317
"default": {
18+
# "ENGINE": "mysql.connector.django",
1419
"ENGINE": "django.db.backends.mysql",
1520
"NAME": os.getenv("AWS_RDS_DATABASE"),
1621
"USER": os.getenv("AWS_RDS_USER_ID"),

0 commit comments

Comments
 (0)