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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xm_csdn/article/details/78260515

使用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();
        });
        
    }
}


具体的看图


猜你喜欢

转载自blog.csdn.net/xm_csdn/article/details/78260515