MOD:加密
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -100,7 +100,7 @@ DATABASES = { | ... | @@ -100,7 +100,7 @@ DATABASES = { |
100 | for db_setting in DATABASES.values(): | 100 | for db_setting in DATABASES.values(): |
101 | db_setting['OPTIONS'] = { | 101 | db_setting['OPTIONS'] = { |
102 | 'driver': 'ODBC Driver 17 for SQL Server', | 102 | 'driver': 'ODBC Driver 17 for SQL Server', |
103 | 'extra_params': "odbc_cursortype=2" | 103 | 'extra_params': "odbc_cursortype=2;TrustServerCertificate=yes;Encrypt=yes" |
104 | } | 104 | } |
105 | 105 | ||
106 | # set this to False if you want to turn off pyodbc's connection pooling | 106 | # set this to False if you want to turn off pyodbc's connection pooling | ... | ... |
-
Please register or sign in to post a comment