michiya / django-pyodbc-azure

Django backend for Microsoft SQL Server and Azure SQL Database using pyodbc
https://pypi.python.org/pypi/django-pyodbc-azure
BSD 3-Clause "New" or "Revised" License
321 stars 140 forks source link

Getting current connection string #216

Open ihelmer07 opened 4 years ago

ihelmer07 commented 4 years ago

I have a project where I connect to multiple read-only MS SQL2014 servers. I'm trying to ensure my connection string is correct however I don't know of a method to get the connection string used to connect to the server.

django.db import connections does not have the connection string property, only the dictionary that I set in settings.py.

Anyone know of a method to get the connectionstring used in the connection?