Re: A solution for django/postgresql transaction problem

2009-02-26 Thread Sushant Sinha
On Wed, 2009-02-25 at 23:09 -0500, Karen Tracey wrote: > You want to use the transaction commit/rollback routines, not cursor > ones: > > http://docs.djangoproject.com/en/dev/topics/db/transactions/ I did not know about this. > > > I think that the cursor should rollback if

Re: A solution for django/postgresql transaction problem

2009-02-25 Thread Sushant Sinha
I am also facing the same problem. Here is the description of my problem. The code tries to create a new user and emits an error when an error happens: try: user = auth.models.User.objects.create_user(uname, email, password = passwd) except db.IntegrityError: htmldict['msg'] = 'Username "