hey guys, following is the error message:
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python39-32\lib\site-packages\django_pyodbc\base.py”, line 98, in
raise ImproperlyConfigured(“Django %d.%d is not supported.” % DjangoVersion[:2])
django.core.exceptions.ImproperlyConfigured: Django 4.2 is not supported.
any help will be much appreciated.
Welcome @tankwan !
Which python odbc library are you using?
Thank you for your reply!
My odbc library is django-pyodbc-1.1.3 and pyodbc-4.0.39.
django version is 4.2.18
python is 3.9.2(32bit)
It works when python connect ODBC directly by using pyodbc. But in django, it doesn’t work and gives me such error message.
The django-pyodbc
library version 1.1.3 was released in December 2017 - more than 7 years ago - and supported Django 1.4 - 1.10.
You need to find a more current library.
Which library you select will depend upon what features you need from an ODBC library. If it’s to support access to MS SQL Server, see Using a 3rd-party database backend.