Skip to content

Commit 7b964eb

Browse files
committed
mysql connector 변경
1 parent 3e43b80 commit 7b964eb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyconkr/settings-dev.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from pyconkr.settings import *
44
from pyconkr.storage import *
55

6+
import pymysql
7+
pymysql.install_as_MySQLdb()
8+
69
DEBUG = True
710

811
ALLOWED_HOSTS += [
@@ -12,7 +15,8 @@
1215
# RDS
1316
DATABASES = {
1417
"default": {
15-
"ENGINE": "mysql.connector.django",
18+
# "ENGINE": "mysql.connector.django",
19+
"ENGINE": "django.db.backends.mysql",
1620
"NAME": os.getenv("AWS_RDS_DATABASE"),
1721
"USER": os.getenv("AWS_RDS_USER_ID"),
1822
"PASSWORD": os.getenv("AWS_RDS_PW"),

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ shortuuid==1.0.11
2323
jsons==1.6.3
2424
django-cors-headers==3.14.0
2525
requests==2.28.2
26-
PyFunctional==1.4.3
26+
PyFunctional==1.4.3
27+
pymysql==1.0.3

0 commit comments

Comments
 (0)