|
ibm_db_django_README
Getting started with IBM DB Django adapterIBM DB2 support for the Django application Framework. ibm_db_django enables access to IBM DB2 from Django applications http://www.djangoproject.com/ The adapter has been developed and is supported by IBM. Prerequisites for Django on Python
We are assuming that you have IBM DB2 installed. If you need to connect from Django to a DB2 server on the same local machine, just proceed to the Install steps below. If you need to connect from Django to a DB2 server on different machine, then you will need to at minimum install the IBM Data Server Driver Package on the machine where you install Django. Prerequisites for Django on Jython
Installation1. Install DjangoInstall Django as per instructions from the Django website.
2. Install DB2 Django adapter (ibm_db_django)Download latest release of ibm_db_django from official release To install DB2 Django adapter on Linux$ easy_install ibm_db_djangoTo install DB2 Django adapter on Windowsc:\> easy_install ibm_db_django Tested Operating Systems
Supported Databases
Future Supported Databases
TestingNote for Django on Python: Before you run Django to connect to DB2, you need to ensure that IBM CLI (which the DB2 Django adapter uses to connect to DB2) is accessible from Django. On Linux, set the LD_LIBRARY_PATH variable (for the user executing Django) to include the folder where the IBM CLI shared library (libdb2.so) resides -
$ django-admin.py startproject myproj $ cd myproj $ vi settings.py DATABASES = {
'default': {
'ENGINE' : 'ibm_db_django'
'NAME' : 'mydb'
'USER' : 'db2inst1'
'PASSWORD' : 'ibmdb2'
'HOST' : 'localhost'
'PORT' : '50000'
}
}'django.contrib.flatpages', 'django.contrib.redirects', 'django.contrib.comments', 'django.contrib.admin', $ python manage.py test Database Transactions
Known Limitations of ibm_db_django adapter
Feedback
|