Django + WebKit = Broken pipe

后端 未结 6 1809
予麋鹿
予麋鹿 2020-12-05 13:48

I\'m running the Django 1.2 development server and I get these Broken Pipe error messages whenever I load a page from it with Chrome or Safari. My co-worker is getting the e

6条回答
  •  广开言路
    2020-12-05 14:24

    I had a possibly related problem.

    While using Safari and Chrome on Windows, on my local machine on my django runserver, some views were randomly not returning a response to ajax POST requests.

    The solution was this:

    The data I was passing in to the view via POST was just one key/val pair: "action=remove". Now, I wasn't actually using this data in my view. Once I assigned the data to a var in my view, (i.e. foo = request.POST['action']), the view would return a response to ajax requests every time.

    Absolutely crazy!

提交回复
热议问题