1
I am trying to connect the Sql Server database to Django but am getting the following error(The connector I am using is Django-pyodbc-Azure):
Django.db.utils.Interfaceerror: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Name of data source not found and no default driver specified (0) (Sqldriverconnect)')
The setings.py configuration:
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'name',
'USER': 'user',
'PASSWORD': '1234',
'HOST': '127.0.0.1\test',
'PORT': '1433',
},}
Dependencies:
Django==2.2.4
django-pyodbc-azure==2.1.0.0
Someone could help with that?
That answers your question? Connect SQL Server database to Django
– KALIBBAN
The error occurs precisely when trying to use the Django-pyodbc-Azure Nector, which is the suggested setting in the link response.
– NoobDeveloper
I think the odbc driver is missing. In the package description on Pip there are some https://pypi.org/project/django-pyodbc-azurelinks/
– gmsantos