Similar to this question:
How to use Windows authentication to connect to MS SQL server from a Windows workstation in another domain using Python
My current database configurations are as follows:
'default': {
'ENGINE': "sql_server.pyodbc",
'HOST': "myServer\server1",
'USER': "myUserName",
'PASSWORD': "myPassWord",
'NAME': "myDB"
However, I would like to be authenticated by Windows so that I can keep track of who makes the changes to the database. I have Windows authentication through IIS, so users are prompted to log in when they visit my application. I tried this, but this did not work:
'default': {
'ENGINE': "sql_server.pyodbc",
'HOST': "myServer\server1",
'trusted_connection': 'yes'
'NAME': "myDB"
Is there a way to get through Windows authentication in the Django database settings?
source
share