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).
But I got an AttributeError: 'WSGIRequest' object has no attribute 'is_ajax' So I looked for methods of WSGIRequests and found this: http://djangoapi.matee.net/django.core.handlers.wsgi.WSGIRequest-class.html Here is mentioned that WSGIRequest inherit from HTTPRequest (including is_ajax method). So why I'm getting this Error? Can anyone tell me what I'm doing wrong? Thanks. -- View this message in context: http://www.nabble.com/WSGIRequest-and-is_ajax--tp16912620p16912620.html Sent from the django-users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---