title: Django+Postgres: "current transaction is aborted, commands ignored until end of transaction block"
body: <p>I've started working on a Django/Postgres site. Sometimes I work in <code>manage.py shell</code>, and accidentally do some DB action that results in an error. Then I am unable to do <em>any</em> database action at all, because for any database action I try to do, I get the error:</p>
  
  <pre><code>current transaction is aborted, commands ignored until end of transaction block
  </code></pre>
  
  <p>My current workaround is to restart the shell, but I should find a way to fix this without abandoning my shell session.</p>
  
  <p>(I've read <a href="https://stackoverflow.com/questions/2979369/databaseerror-current-transaction-is-aborted-commands-ignored-until-end-of-tran">this</a> and <a href="https://stackoverflow.com/questions/2209560/internalerror-current-transaction-is-aborted-commands-ignored-until-end-of-tran">this</a>, but they don't give actionable instructions on what to do from the shell.)</p>