python Exception happened during processing of request from( 127.0.0.1 xxx) error [10053]

来源:互联网 发布:淘宝商品背景素材 编辑:程序博客网 时间:2024/06/01 19:14

使用Django框架,删除数据时,突然提示如下错误:

Exception happened during processing of request from( 127.0.0.1  xxx)  error :[Errno 10053]

经过各种搜索和尝试,应该是在删除时又做了其他的操作,故会提示该错误

仔细检查出现该错误提示的方法流程,排查前端和后端是否有异步执行的代码会相互影响

function delx(id) {    var msg = "确定要删除吗?";    if (confirm(msg)==true){        var data = {"id":id};        $.post("/delete_pv",data,function(manage){            alert(manage);                    });        window.location.reload();    }}

改为:

function delx(id) {    var msg = "确定要删除吗?";    if (confirm(msg)==true){        var data = {"id":id};        $.post("/delete_pv",data,function(manage){            alert(manage);            window.location.reload();        });            }}


具体的看图


阅读全文
0 0
原创粉丝点击