diff --git a/src/esb/esb/conf/default.py b/src/esb/esb/conf/default.py index 786faa918..ec43cc617 100644 --- a/src/esb/esb/conf/default.py +++ b/src/esb/esb/conf/default.py @@ -18,10 +18,15 @@ # import os +import pymysql from tencent_apigateway_common.env import Env from conf.log_utils import get_logging_config, makedirs_when_not_exists +pymysql.install_as_MySQLdb() +# Patch version info to forcedly pass Django client check +pymysql.version_info = 1, 4, 2, "final", 0 + env = Env() BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))