This Django AJAX Tutorial is about how to do basic AJAX using Fetch API with Django framework. That is how to perform AJAX GET and POST requests (xhr requests) to Django with Fetch API.
This Basic Django AJAX Tutorial goes over some of the basics you need to do and know when doing AJAX in Django project.
============ FOLLOW ME =================
Telegram:
Twitter:
Facebook:
============ SOURCE CODE ================
️ Is available via Patreon:
=========================================
Timecodes:
00:00 - Beginning. Demo of the project.
00:44 - Description of the starting Django project.
01:50 - Adding a JavaScript file
02:14 - Simple example of JavaScript onclick event handler
04:00 - Sending an AJAX GET request to Django with Fetch API
09:21 - Sending AJAX POST request to Django with Fetch API
12:58 - Getting CSRF token for an AJAX POST request
16:35 - Handling an AJAX POST request on the Django side.
️️️ Web Scraping course ️️️
is available via Patreon here:
or its landing:
️️️ PLAYLISTS ️️️
Django Tutorial: Blog Engine
Kivy Tutorial: Coppa Project
Telegram Bot with Python (CoinMarketCap)
Python Web Scraping
SUBSCRIBE FOR MORE VIDEOS
Red Eyed Coder Club is the best place to learn Python programming and Django:
Subscribe ⇢
Django AJAX Tutorial: Basic AJAX in Django app with Fetch API | Django casts