tags:

views:

34

answers:

1

Hi, I am new to ajax and django. I have written own XMLHttpRequest call on browser side I will have to manually set the header request.META['HTTP_X_REQUESTED_WITH'] to string XMLHttpRequest . How can I access these headers on browser side

+2  A: 

Use request.is_ajax(). See the docs.

Daniel Roseman