error: [Errno 32] Broken pipe

前端 未结 2 1722
孤独总比滥情好
孤独总比滥情好 2020-12-10 04:02

I am working on a Django project. All went well till I created an Ajax request to send values from the html page to the backend (views.py).

When I send the data usi

2条回答
  •  抹茶落季
    2020-12-10 04:34

    You haven't posted any code, but this is probably because you have triggered the Ajax request on a button submit but haven't prevented the default action. So the Ajax request is made, but by the time it comes to return the data, the browser has already requested the next page anyway, so there is nothing to receive it.

提交回复
热议问题