Skip to content

Commit

Permalink
feat: update dependencies for project
Browse files Browse the repository at this point in the history
  • Loading branch information
rolin999 committed Nov 18, 2024
1 parent dc3f0c9 commit a100139
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bk-login/bklogin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a100139

Please sign in to comment.