I tried various combinations to build the connection string in the settings.py. My first attempt was:
'FabricDW': {
'ENGINE': 'mssql',
'NAME': CONFIG["WAREHOUSE_DB_NAME"],
'USER': CONFIG["AZURE_CLIENT_ID"], # Azure AD user
'PASSWORD': CONFIG["AZURE_CLIENT_SECRET"], # Azure AD password
'HOST': CONFIG["WAREHOUSE_HOST"], # Server hostname
'PORT': '1433',
'OPTIONS': {
'driver': 'ODBC Driver 17 for SQL Server',
'extra_params': 'Authentication=ActiveDirectoryServicePrincipal',
'host_is_server': True,
},
}
I looked for solutions and tried various different approaches (such as trying to use different authentication methods) or using DSN (connection itself is working fine). Nothing helps.
When I use connection strings like this in usual python scripts everything works like a charm:
I'm trying to connect my Django app to Microsoft Fabric warehouse but I get the following error messages:
I tried various combinations to build the connection string in the settings.py. My first attempt was:
I looked for solutions and tried various different approaches (such as trying to use different authentication methods) or using DSN (connection itself is working fine). Nothing helps.
When I use connection strings like this in usual python scripts everything works like a charm:
I don't know if there is some parsing complications that I overlook. Help would be great.