I've tried to install django_pyodbc
but when I try make migrations got the error:
django.core.exceptions.ImproperlyConfigured: Django 2.1 is not supported.
My setttings.py:
'Test_DB': {
'ENGINE': 'django_pyodbc',
'NAME': 'TEST',
'HOST': '127.0.0.1',
'USER': 'sa',
'PASSWORD': '123456',
'OPTIONS': {
'driver': 'ODBC Driver 12 for SQL Server',
},
},
When I try to install django-pyodbc-azure, I got the other error:
Try using 'django.db.backends.XXX', where XXX is one of: 'mysql', 'oracle', 'postgresql', 'sqlite3'
My setttings.py:
'Test_DB': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'TEST',
'HOST': '127.0.0.1',
'USER': 'sa',
'PASSWORD': '123456',
'OPTIONS': {
'driver': 'ODBC Driver 12 for SQL Server',
},
},
So what should I do so that I can connect the SQL Server 2012?