Honestly I don't have any experience with Django and AJAX Yet. Just in
the CSRF with your calls though. Not sure if that helps at all. Good
On Oct 11, 6:07 am, Pigletto <
pigle...@gmail.com> wrote:
> Simple view, shown below, sometimes fail in Chrome browser (request is shown
> as Pending or doesn't return any content):
>
> def exposer(request):
> return HttpResponse('Response from AJAX exposer')
>
> That is called by AJAX, eg:
> $.post('{% url exposer %}', {'bb':'aa'}, callback);
>
> Suprisingly if I change my view to:
>
> def exposer(request):
> request.POST # yes, just call it
> return HttpResponse('Response from AJAX exposer')
>
> it works properly.
>
> Also, If I don't send any data with my POST request it works:
> $.post('{% url exposer %}', {}, callback);
>
> Problem exists only in Chrome browser and in WSGI environment (I've checked
> with uWSGI and Cherokee, Django 1.3 and trunk).
>
> Example application that exposes the problem:
https://bitbucket.org/pigletto/chrometest/src
>