Settings.py for django/Python3 running on Ibm I against local DB2?

Issue #29 on hold
Helge Røshol created an issue

Ibm i V7R3M0

ACS installed: python3 - 3.6.8 ibm_db - 2.0.5.9

Installed from a whl-file received in a mail: ibm_db_django - 1.0.9.1

pip3- installed: Django - 2.1.7

Does anyone got a working settings.py for running django (/python3) on Ibm I agains local DB2 especially the "DATABASES" part, but any special installations/values

Tried (,but didn't work) DATABASES = {
'default': {
'ENGINE': 'ibm_db_django',
'NAME': '*LOCAL',
'USER': <user>,
'PASSWORD': <password>,
}
}

the Error was someting like: TypeError: 'NoneType' object is not callable (think it wanted a port-number)

Tried (,worked up to a point when it was going to use the DB2): DATABASES = {
'default': {
'DATABASE_ENGINE': 'ibm_db_django',
'DATABASE_NAME': '*LOCAL',
'DATABASE_USER': <user>,
'DATABASE_PASSWORD': <password>,
}
}

error: Please supply the ENGINE value...

Mvh HelgeR

Comments (10)

  1. Kevin Adler

    Hi Helge, I believe the latest version of Django that we've tested with is 1.8.11. From my notes, what you have in your first configuration is correct, but we may need to make further changes to ibm_db_django for newer Django releases. The version available from pip should have those changes, but it does not have the changes to work with ibm_db on IBM i.

    I'll look in to it and see what needs to be done.

  2. Kevin Adler

    I don't think this will be a simple fix. I'd suggest for now if you want to run Django on IBM i, to use the SQLite adapter instead.

  3. Helge Røshol reporter

    Ok I'll guess it won't be Ibm I/DB2 and django this time. Maybe in the future.

    Thanks Mvh Helge R.

  4. Log in to comment