Skip to content

Commit

Permalink
feat: added code in settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rolin999 committed Sep 27, 2024
1 parent b245ff5 commit 43099d2
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 @@ -16,9 +16,15 @@
from urllib.parse import urlparse

import environ
import pymysql
import urllib3
from django.utils.encoding import force_bytes

pymysql.install_as_MySQLdb()
# Patch version info to forcely pass Django client check
pymysql.version_info = 1, 4, 2, "final", 0


# environ
env = environ.Env()
# load environment variables from .env file
Expand Down

0 comments on commit 43099d2

Please sign in to comment.