Django + FastCGI - randomly raising OperationalError

前端 未结 13 1136
忘掉有多难
忘掉有多难 2020-12-31 19:24

I\'m running a Django application. Had it under Apache + mod_python before, and it was all OK. Switched to Lighttpd + FastCGI. Now I randomly get the following exception (ne

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 19:48

    I fixed a similar issue when using a geodjango model that was not using the default ORM for one of its functions. When I added a line to manually close the connection the error went away.

    http://code.djangoproject.com/ticket/9437

    I still see the error randomly (~50% of requests) when doing stuff with user login/sessions however.

提交回复
热议问题