pombreda / djapian

Automatically exported from code.google.com/p/djapian
Other
0 stars 0 forks source link

python manage.py index #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using postgres. The command python manage.py index causes the following
error:

  File "/usr/local/lib/python2.6/dist-packages/django/db/transaction.py",
line 77, in leave_transaction_management
    raise TransactionManagementError("Transaction managed block ended with
pending COMMIT/ROLLBACK")
django.db.transaction.TransactionManagementError: Transaction managed block
ended with pending COMMIT/ROLLBACK

Any ideas?
Thx, Hans

Original issue reported on code.google.com by braxmeie...@gmail.com on 13 Nov 2009 at 5:32

GoogleCodeExporter commented 9 years ago
Does it happens just after the start of execution or after some time?

Original comment by daevaorn on 13 Nov 2009 at 8:32

GoogleCodeExporter commented 9 years ago
Hi again,

I posted the solution already: We changed the model, but did not update the
djapian_change table. 

So if anyone get's the error above then

first delete the djapian_change table, execute the command ./manage.py syncdb 
and 
at last rebuild the index with the command ./manage.py index --rebuild

Regards, Hans

Original comment by braxmeie...@gmail.com on 13 Nov 2009 at 8:58

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 14 Nov 2009 at 4:22