postgresql - Django+Postgres: "current transaction is aborted, commands ignored until end of transaction block" -


i've started working on django/postgres site. work in manage.py shell, , accidentally db action results in error. unable any database action @ all, because database action try do, error:

current transaction aborted, commands ignored until end of transaction block 

my current workaround restart shell, should find way fix without abandoning shell session.

(i've read this , this, don't give actionable instructions on shell.)

you can try this:

from django.db import connection connection._rollback() 

the more detailed discussion of this issue can found here


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -