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 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/65ad... > > Following the examples in the documentation, I build my code like: > > from django.db import connection > cursor = connection.cursor() > cursor.execute(insert_query) > > but this does not do anything. > > Any ideas? > > Thanks, > oMat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---