Try:
transaction.commit_unless_managed()
I originally found it in the django scripts code (
http://code.djangoproject.com/browser/django/trunk/django/bin/daily_cleanup.py),
and it forces a commit when you're not under transaction management. I never
found any references to it in the
By the way, when I try to commit using transaction.commit(), I get a
TransactionManagementError saying "This code isn't under transaction
management", which makes sense, as the cursor is not in a transaction
context.
On 14 Mart, 17:36, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote:
> I am
I am trying to run a custom insert sql on postgres db, but the command
does not seem to commit. I searched through this list and saw that
there are unresolved discussions like:
http://groups.google.com/group/django-users/browse_thread/thread/65adbdfa9bc92a7b/
Following the examples in the
3 matches
Mail list logo