ibis777
Posts: 8
Joined: Tue Jan 15, 2019 2:36 am
Location: Colonia, Uruguay

Connect Django website with SQL server Database

Sun Feb 03, 2019 10:36 pm

Hi everyone!

I have tried for a while to perform migrations for a Django project connected to a remote SQL Server database and I still can not do it. I have tried with many packages, but each time I try to migrate the project it shows:

......
.....
..... django.core.exceptions.ImproperlyConfigured: 'sqlserver' is not an available database server.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3'

In the databases section, in the "ENGINE" configuration, I have not only tried with sqlserver, but also with sqlserver_ado, sql_server.pyodbc, and some other options (which I can not remember now). I installed a lot of packages: django-pyodbc, django-pymssql, django-pyodbc-azure, django-mssql, django-sqlserver, freetds-dev, and more, I do not remember all, but none of them seems tto works (I don´t know why, maybe I haven´t installed them correctly, or something)

Does anyone know how to make it work, or a tutorial or website that explains how to do it?

If it helps, I´ve been working with python3 and pip3, perhaps some of the packages do not work on those versions?


Return to “Python”