Closed HowardMartin closed 3 years ago
What error you are facing please elaborate.
Thank you for your fast response.
Here is my message error: 'ibm_db_django' isn't an available database backend.
I can choose only between mysql,postgresql, etc. No options on ibm db.
Hereby I attach the screenshot of the error:
Here is my pip list, I'm trying using django 2.2 and ibm_db_django 1.3
Please help me, Thank you very much.
I get the same error as well, I run from IBM i
Traceback (most recent call last):
File "/QOpenSys/pkgs/lib/python3.6/site-packages/ibm_db_django/creation.py", line 25, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/db/utils.py", line 111, in load_backend
return import_module('%s.base' % backend_name)
File "/QOpenSys/pkgs/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 22, in
At today's date 16/April/2021 , on linux, I'm can use Db2-LUW v11.5.5.0 with the following combinations of versions:
python 3.8.5
pip 21.0.1
django framework 3.1.8
regex 2021.4.4
ibm_db 3.0.4
ibm_db_django 1.4.0.0
After configuring the settings.py
, the python manage.py test
completes successfully, and the python manage.py migrate
completes successfully.
So it seems that with correct configurations and module-versions, the ibm_db_django can be once again used with currently supported Db2-LUW versions.
@imavo Gracias esto funciona hasta al dia de hoy
A la fecha de hoy 16/abril/2021, en Linux, puedo usar Db2-LUW v11.5.5.0 con las siguientes combinaciones de versiones:
python 3.8.5 pip 21.0.1 django framework 3.1.8 regex 2021.4.4 ibm_db 3.0.4 ibm_db_django 1.4.0.0
Después de configurar
settings.py
, sepython manage.py test
completa correctamente y sepython manage.py migrate
completa correctamente.Por lo tanto, parece que con las configuraciones y versiones de módulo correctas, ibm_db_django se puede volver a utilizar con las versiones de Db2-LUW actualmente compatibles.
'ibm_db_django' isn't an available database backend.
Pip List Django 3.1 django-contrib-comments 2.1.0 django-cors-headers 3.7.0 djangorestframework 3.12.2 ibm-db 3.0.3 ibm-db-django 1.4.0.0
DATABASES = { 'default': { 'ENGINE': 'ibm_db_django', 'NAME': 'XXX', 'USER': 'XXX', 'PASSWORD' : 'XXX', 'HOST': 'XXX', 'PORT': 'XXX', 'PCONNECT' : True, }, }
Could someone help, I have followed all the details and versions on readme.md. But I still got some errors. Thank you