Old django hack

Scenario:

django 0.91
postgresql 9.1
psycopg1
bug when importing psycopg

Fix:

Edit django/core/db/backends/postgresql.py and import psycopg twice :)


. try:
.     import psycopg as Database
. except AttributeError:
.     import psycopg as Database

This entry was posted in programming and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>