Django runserver + Chrome/Safari + AJAX POST quirk
|Reported by:||davemckenna01||Owned by:||nobody|
|Severity:||Keywords:||runserver post view ajax chrome safari|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Only with Safari and Chrome on Windows on my local machine using the django runserver, some views were randomly not returning a response to ajax POST requests. Sometimes they would, sometimes they would not.
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.POSTaction?), the view would return a response to ajax requests every time.
Am I missing something - or does that seem like a crazy weird bug?