recovering from interpreter db errors ... post 0.91

2007-10-12 Thread stv
using the interpreter to learn Django (-r6474 from Subversion) with postgresql_psycopg2 (pg82). I've found this thread in the django-users archive: recovering from interpreter db errors (jan-06) http://tinyurl.com/2bazqe But the information seems out-of-date with regards to the current branc

Re: recovering from interpreter db errors

2006-01-24 Thread exoweb adrian
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.

Re: recovering from interpreter db errors

2006-01-23 Thread Luke Skibinski Holt
excellent - exactly what I was looking for. Thanks heaps, Andreas. Luke Skibinski Holt

Re: recovering from interpreter db errors

2006-01-23 Thread Andreas Stuhlmüller
On 1/23/06, Luke Skibinski Holt <[EMAIL PROTECTED]> wrote: > > Is there a way within the interpreter of recovering from these sorts of > errors: > > psycopg.ProgrammingError: ERROR: current transaction is aborted, > commands ignored until end of transaction block Execute these commands after the

Re: recovering from interpreter db errors

2006-01-23 Thread Kenneth Gonsalves
On Monday 23 Jan 2006 5:50 pm, Luke Skibinski Holt wrote: > psycopg.ProgrammingError: ERROR:  current transaction is aborted, > commands ignored until end of transaction block programming error means something wrong in the sql query -- regards kg http://www.livejournal.com/users/lawgon tally h

recovering from interpreter db errors

2006-01-23 Thread Luke Skibinski Holt
Is there a way within the interpreter of recovering from these sorts of errors: psycopg.ProgrammingError: ERROR: current transaction is aborted, commands ignored until end of transaction block I get them when debugging queries and something goes awry wherein I have to restart the interpreter an