WSGIRequest and is_ajax?
django-users.narkive.com › IIQatFsi › wsgirequestPost by Reinhard Freiler I have written a view in which should return a JSON string or a HTTPResponse, either the request is ajax or not, so I've tried to check this via the is_ajax() method of the request object like it is said in the documentation (http://www.djangoproject.com/documentation/request_response/#httpresponse-objects).