2007年04月28日 星期六 19:32
ÔÚdjangoÖÐÎÒÓÃpsycopg2Á¬½Ópostgresql ÎÒ²âÊÔÒ»ÏÂÊý¾Ý¿âÅäÖ㺠>>> 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 "", line 1, in 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' ÊÇʲôÎÊÌ⣬Òà»òÊÇbug Íû´Í½Ì -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070428/cc47d71c/attachment.htm
Zeuux © 2025
京ICP备05028076号