Hi, I think it is bad that request.session.save() is called, if the DEBUG-View gets returned on an uncaught exception.
I looked at the django source, but could not find a good patch for django or my code. What is bad about this: The debug view is not returned, since a second happens on request.session.save(): [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] mod_wsgi (pid=5165): Exception occurred processing WSGI script '/localhome/fo/foork_abc/apache/django_wsgi.py'. [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] Traceback (most recent call last): [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] File "/localhome/fo/django/core/handlers/wsgi.py", line 243, in __call__ [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] response = middleware_method(request, response) [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] File "/localhome/fo/django/contrib/sessions/middleware.py", line 35, in process_response [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] request.session.save() [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] File "/localhome/fo/django/contrib/sessions/backends/db.py", line 56, in save [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] sid = transaction.savepoint() [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] File "/localhome/fo/django/db/transaction.py", line 188, in savepoint [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] connection._savepoint(sid) [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] File "/localhome/fo/django/db/backends/__init__.py", line 37, in _savepoint [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] self.connection.cursor().execute(self.ops.savepoint_create_sql(sid)) [Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34] ProgrammingError: current transaction is aborted, commands ignored until end of transaction block Has someone a hint how to fix this? Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---