ibmdb / python-ibmdb-django

IBM DB2 Driver for the Django application Framework
Apache License 2.0
29 stars 42 forks source link

Win: clidriver location #99

Closed juliushacker closed 9 months ago

juliushacker commented 9 months ago

Hi everybody,

I'm updating my installations at the moment and stumbled across the fact, that I have to add some commands for ibmdb to work since 3.2.0 - see https://github.com/ibmdb/python-ibmdb/issues/887

Is there a preferred way to add the os.add_dll_directory-Statement in a Django project?

Thanks for any tips on this!

praveen-db2 commented 9 months ago

@juliushacker When you install ibm_db_django and ibm_db , there will be a file called ibm_db_dbi.py installed under LIB/site-packages, inside that file we do "import ibm_db". After this you can add the os.add_dll_directory-Statement.

I hope this will resolve your issue.

I think you can dd this at any place, but it must be just before Django application connects to ibm_db.