From d850f7e96dc6e87b1e4b3c4bdd51c436ba0e5313 Mon Sep 17 00:00:00 2001 From: chongzailiu Date: Wed, 12 Apr 2023 10:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2pymysql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/application/__init__.py | 2 ++ backend/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/application/__init__.py b/backend/application/__init__.py index e69de29..c45523b 100644 --- a/backend/application/__init__.py +++ b/backend/application/__init__.py @@ -0,0 +1,2 @@ +import pymysql +pymysql.install_as_MySQLdb() \ No newline at end of file diff --git a/backend/requirements.txt b/backend/requirements.txt index 17727f8..c42c190 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -20,7 +20,7 @@ inflection==0.5.1 itypes==1.2.0 Jinja2==3.1.2 MarkupSafe==2.0.1 -mysqlclient==2.1.1 +pymysql==1.0.3 Pillow==9.4.0 PyJWT==2.6.0 pyparsing==2.4.7