本文介绍了接口错误 (0, '')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我使用 Django 构建了一个站点,但在尝试执行查询时收到了这个烦人的错误.
I have built a site using Django and I am receiving this annoying error when I am trying to execute a query.
如果我重新启动 Apache 服务器,错误会在短时间内消失.
If I restart the Apache server, the error will go away for a short time.
推荐答案
这是由全局游标引起的.尝试在需要原始查询的每个方法中创建和关闭游标.
This is caused by a global cursor. Try creating and closing the cursor within each method a raw query is needed.
这篇关于接口错误 (0, '')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!