Skip to content

Commit

Permalink
fix(esb): make pymysql as mysqldb (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken authored Sep 26, 2024
1 parent 18e679a commit 6413a1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/esb/esb/conf/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)))
Expand Down

0 comments on commit 6413a1d

Please sign in to comment.