• My Errors
  • Login
  • Search
Search again

Error #69807

ProgrammingError: current transaction is aborted, commands ignored until end of transaction block

Appears in Django when the current session is blocked

User's solution

This works!
+4 Vote Up

In Python, close the connection

import django
django.db.connection.close()

Apr 12, 2008

Comments

works fine.... good solution... but why this happens with posgres and don't with sqlite ?? in my country this is know as GAMBIBARRA ... but it's ok =) anyway, thanks for this post!

user16917 Aug 04, 2008

Thanks, this seems to be the only page on the whole internet that provides a solution for this nonsensical error. I'm also curious as the why this only happens with PostgreSQL, but not MySQL.

user79289 Sep 03, 2009

The reason that the postgresql treat a sql command as a transaction.

user88001 Dec 23, 2009