Cool, all I have realised is that if someone is specifically doing a jquery 
powered application, they can just write it and use it on their own using 
the below code
```py
def is_ajax(): 
     return request.headers.get('x-requested-with') == 'XMLHttpRequest'
```

And that's it! It will start checking if the code was from jquery, but for 
none Jquery, the docs ellaborate more here 
https://docs.djangoproject.com/en/3.1/releases/3.1/#id2

On Thursday, February 24, 2022 at 3:33:20 PM UTC+3 Jason wrote:

>
> Reason why:
> https://code.djangoproject.com/ticket/30997
> https://groups.google.com/d/msg/django-developers/F8F5b1kEA34/FhqCmRw9BwAJ
>
> Documentation in release notes:
> https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
> On Thursday, February 24, 2022 at 2:09:13 AM UTC-5 [email protected] 
> wrote:
>
>> Hello team.
>> Am sending jquery requests in django 4 but I have just realised that 
>> checking if the requests were from jquery using is_ajax and then perform 
>> ajax related actions is not possible. What is replacing this, and why would 
>> such a cool feature be removed.
>>
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3a871b3c-d4dd-47d1-9801-2293762a5cccn%40googlegroups.com.

Reply via email to