Re: What replaced is_ajax() is django 4

2022-03-07 Thread Jet Ezra
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 chec

Re: What replaced is_ajax() is django 4

2022-02-24 Thread Jason
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 ezra...@gmail.com wrote: >