Re: Operate with Postgresql from Django views.

2009-12-21 Thread Nicu Marcu
Yes, this was the problem, thanks for your help. 2009/12/21 Christophe Pettus > > On Dec 21, 2009, at 1:34 AM, NMarcu wrote: > > Everything is OK, if the view is finished, but if after this line I > > add an infinite loop, and in this time I check that table from console > > for the new record,

Re: Operate with Postgresql from Django views.

2009-12-21 Thread Christophe Pettus
On Dec 21, 2009, at 1:34 AM, NMarcu wrote: > Everything is OK, if the view is finished, but if after this line I > add an infinite loop, and in this time I check that table from console > for the new record, that is not there. This sounds like a transaction issue. In the standard Django transa

Operate with Postgresql from Django views.

2009-12-21 Thread NMarcu
Hello, I have a problem, or I don't know how is working. I want to do an operation to a table, on Postgresql database. By example: I want to add new data in a table. I do it like this: ob_device = Device(id=device_address) ob_device.save() Everything is OK, if the view is finished, bu