I try to connect my local SQL Serer 2008 with Django. When I try to run the django server then this error is shown:
django.db.utils.InterfaceError: ('IM002'. '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverCon)')
My connection string is:
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
'OPTIONS': {
'driver': 'ODBC Driver 11 for SQL Server',
},
}
}