django-environ
django-environ copied to clipboard
Support for mssql-django
There is an official django-mssql-backend port by Microsoft in the making. To use it you have to provide "mssql" as the engine. https://github.com/microsoft/mssql-django#installation
Currently django-environ maps "mssql" to "sql_server.pyodbc". https://github.com/joke2k/django-environ/pull/157
Don't know what the solution is, but it would be nice if there's a way to configure mssql-django in the next release.
Either remove the mapping from Env.DB_SCHEMES or add another one like "mssql2".
Workaround:
env.DB_SCHEMES.pop("mssql")
I can confirm that this is still an issue. But the workaround works great.
Yes, still an issue. dj-database-url maps mssql to mssqlms: https://pypi.org/project/dj-database-url/
This workaround works, but would be nice to have a documented way to connect using mssql engine. Even documenting this workaround would be good.