exoweb adrian Tue, 24 Jan 2006 02:57:12 -0800
I do this at this start of every django interpreter session: >>> from django.core.db import db >>> db.cursor().close() >>> db.connection.autocommit()
Then you don't need to do a rollback and lose your cursor every time you get a database error.