Re: TransactionManagementError is raised when autocommit …

2016-03-06 Thread Shai Berger
Hi Tore, You should be able to get what you want be replacing your commits by connection.cursor.execute("commit"); transaction.rollback() or equivalents (caveat: untested). This looks like a very hackish thing to do, code I wouldn't put in production. And it should. Shai. On Saturday

Re: Django Integration

2016-03-06 Thread Asif Saifuddin
Hi, about the DRF integration in django I went through the dep and the branch of tom christies work. He shared his opinion as some one should do the work and he will provide guidance. I still have some interest in the REST parts work. If Tom christie/DSF core team allows. Thanks Asif On Satu

Re: TransactionManagementError is raised when autocommit …

2016-03-06 Thread Aymeric Augustin
Hi Tore, > On 05 Mar 2016, at 20:41, Tore Lundqvist wrote: > > Regardless of the particular problem I have got shouldn't it be possible to > disable Djangos transactional management if you want to? It's possible. It’s documented. https://docs.djangoproject.com/en/1.9/ref/settings/#autocommit