Closed rajddesai closed 1 year ago
@rajddesai its PORT nor POST, Correct and check
DATABASES = { 'default': { 'ENGINE': 'ibm_db_django', 'NAME': 'MAX', 'USER': 'admin', 'PASSWORD': os.environ.get("DB2_PASSWORD"), 'HOST': 'cpd-analytics.apps.analytics.cp.fyre.ibm.com', 'POST': '30921', 'PCONNECT': True }, 'original': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }
Ah 🤦 thanks for spotting this, sorry for this works fine after fixing.
I'm getting the following error when trying to connect to DB2 with settings (tried with both pconnect true/false): Settings:
Error:
Using the same connection information I can connect using the
ibm_db
package so I'm not sure what is going on here. Code:Output: