perf: remove pymysql

This commit is contained in:
Eric
2024-06-24 20:04:05 +08:00
committed by Bryan
parent 3fade107d5
commit 17d96669fe

View File

@@ -1,16 +1,8 @@
import os
import platform
import re
from redis.sentinel import SentinelManagedSSLConnection
if platform.system() == 'Darwin' and platform.machine() == 'arm64':
import pymysql
# pymysql.version_info = (1, 4, 2, "final", 0)
pymysql.install_as_MySQLdb()
from django.urls import reverse_lazy
from redis.sentinel import SentinelManagedSSLConnection
from .. import const
from ..const import CONFIG