Wednesday, October 7, 2020

Need Guidance to setup Django with MS SQL server

Hi Geeks,

I need your support for setting up my django project with MS SQL server.

As there is no proper tutorial how to setup with MS SQL server. I tried it many times but failed with same errors. Please help me to progress.

Tried below :
 'ods_database': {
        'ENGINE': 'sql_server.pyodbc',
        'NAME': 'test',
        'HOST': '***',
        'PORT':'1433',
        'USER': '***',
        'PASSWORD': '***',

        'OPTIONS':{
                'driver': 'ODBC Driver 17 for SQL Server',
            }
    }

Error: 

File "C:\Dropbox\React\DjangoReact\backend\env\lib\site-packages\sql_server\pyodbc\base.py", line 12, in <module>
    raise ImproperlyConfigured("Django %d.%d.%d is not supported." % VERSION[:3])
django.core.exceptions.ImproperlyConfigured: Django 3.1.2 is not supported.

Thanks,
Arun

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8972677a-651e-4465-8a94-5787e9ab4df9n%40googlegroups.com.

No comments:

Post a Comment