Re: ERROR on document "request-response" , request.is_ajax()

2016-06-20 Thread Tobias McNulty
I think it's a fair point. The docs on HttpReqest.is_ajax() are specifically discussing headers set from the client side, so I think X-Requested-With would be more appropriate. This was discussed previously and a more substantial change proposed: https://groups.google.com/forum/#!searchin/django-d

Re: ERROR on document "request-response" , request.is_ajax()

2016-06-20 Thread Paulo Gabriel Poiati
That is because the documentation is referring to the WSGI envrion dictionary (and thus the CGI spec). This is how the translation from the client to the server works: X-My-Header becomes HTTP_X_MY_HEADER. It isn't wrong IMO. On Sun, Jun 5, 2016 at 8:52 AM Vignesh Tnj wrote: > https://docs.djang

ERROR on document "request-response" , request.is_ajax()

2016-06-05 Thread Vignesh Tnj
https://docs.djangoproject.com/en/1.9/ref/request-response/ " HttpRequest.is_ajax()[source] ΒΆ Returns True if t