I ran into the same problem, but have avoided the "commit manually" and used
try:
#do my normal stuff
except psycopg2.InternalError, e:
#transaction.rollback_unless_managed()
django.db.connection._rollback()
Again, I am not sure whether it is a signal
i actually found a solution. i don't know what the problem is... and
it wouldn't mater anyway. I just wanted to catch and show a message
about it. You should you something like this:
from django.db import transaction
@transaction.commit_manually
def view(request):
try:
#do something
The problems is that some part of your code is screwing up something with your
database connection. Then, some other part of your code tries to use the
database and it can't, so it breaks. Find out where the error is coming from
(from your traceback), then figure out what code executes before
I have search far and wide for some help regarding the Internal Error
and i can't find any help. I have absolutely no idea why this is
showing it doesn't make any sens. I just want a way to catch it but
that is impossible. I would appreciate any help.
Traceback:
File
4 matches
Mail list logo