AJAX with Django For Beginners

Опубликовано: 26 Май 2026
на канале: Emmanuel Okiche
6,917
133

Learn how to use AJAX in your Django applications.
No framework or library required.
We would be using the fetch API to post comments to the server.

Note: A 4:54 the is_ajax() method has been deprecated since Django 3.1 which was released 2 days before i uploaded this.
You could do a manual check with this instead:
if self.request.headers.get('x-requested-with') == 'XMLHttpRequest':

The sourcecode in the repo has been updated to the correct approach.

GitHub repo: https://github.com/fleepgeek/Bloggest...