Replace your PostgreSQL configuration in settings.py: # Before (PostgreSQL) DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", "NAME": "mydb ...
Connect to the availability group through the listener DNS name instead of a specific server: import mssql_python # Connect via availability group listener conn = mssql_python.connect( ...