From a100139e75d83f638152ecca2ee5fbc513fb813d Mon Sep 17 00:00:00 2001 From: rolinchen Date: Mon, 18 Nov 2024 11:04:16 +0800 Subject: [PATCH] feat: update dependencies for project --- src/bk-login/bklogin/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bk-login/bklogin/settings.py b/src/bk-login/bklogin/settings.py index ca72c2be6..5f35c6d24 100644 --- a/src/bk-login/bklogin/settings.py +++ b/src/bk-login/bklogin/settings.py @@ -27,6 +27,12 @@ from django.utils.encoding import force_bytes pymysql.install_as_MySQLdb() +# Patch version info to force pass Django client check +pymysql.version_info = 1, 4, 6, "final", 0 + +# Patch the SSL module for compatibility with legacy CA credentials. +# https://stackoverflow.com/questions/72479812/how-to-change-tweak-python-3-10-default-ssl-settings-for-requests-sslv3-alert +urllib3.util.ssl_.DEFAULT_CIPHERS = "ALL:@SECLEVEL=1" # environ env = environ.Env()