Django + Ajax tutorial project : Counters

Опубликовано: 27 Июль 2026
на канале: Vladsave Coding
386
13

In this simple project we will illustrate how to use Ajax in Django by implementing an app for counters. We will build everything from scratch.

Source code and URLs to resources:
https://github.com/titus58/django-aja...

Chapters:
00:00 Introduction
01:00 Initialize the project
03:13 Add the first view
07:21 Database model
10:50 Display the counters in a generic ListView
19:12 Start working on the AJAX request
21:28 Add the event handlers
26:11 Send the request to the server
32:17 Pass the CSRF token correctly
35:10 Update the counters in the database