django-mssql on debian linux

2019-10-03 23:12发布

问题:

Anyone has success on install django-mssql on linux machine? My deploy server is debian linux and I cant deploy my applications made on windows machine.

I have troubes on my legacy latin1 database on acess it from pyodbc on django, Anyone has a solve to it?

回答1:

Pywin32 is a requirement. I don't believe there is a way of getting that installed and working on debian linux.

Django-mssql requirements



回答2:

Actually,there is a workaround with ODBC interface.

  1. Install Microsoft ODBC Driver 1.0 for linux

  2. Install django_pyodbc.

  3. Configure your database backend with django-pyodbc.

I've tested,everything works just fine.