In django I use psycopg2 to connect to postgresql
I test the DB setting in setting.py:
>>> from django.db import connnection
>>> cursor = connection.cursor()
psyco_connect: dsn = 'user=**** dbname=test password='********''
connection_setup: init connection object at 01460568, refcnt = 1
conn_connect: new postgresql connection at 0144F150
conn_connect: using protocol 2
connection_setup: good connection object at 01460568, refcnt = 1
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Python25\lib\site-packages\django\db\backends\postgresql_psycopg2\bas
e.py", line 50, in cursor
self.connection.set_isolation_level(1) # make transactions transparent to al
l cursors
AttributeError: 'psycopg2._psycopg.connection' object has no attribute 'set_isol
ation_level'
what's this error? How can I solve this?