Django and HTMX #6 (part 2) - Building a Sortable Drag and Drop Interface
In this video, we will extend our example to allow the user to have an ordering to their list of movies. We are going to use the library in conjunction with HTMX and Django to achieve this.
This is the second of two videos on this. In this video we will modify views to work with the new M2M through model, and will add functionality that allows us to persist list ordering to the database for each user’s list.
The final code for this is on the “htmx6.2“ branch on the Github link below.
📌 Chapters:
00:00 Intro
01:08 Modifying views to work with user films M2M model
05:29 Modifying templates
06:18 Creating default order function
08:35 Adding endpoint for HTMX post request
15:55 Re-ordering items on delete
19:24 Outro
📖 Blog:
👾 Github:
🐦 Twitter:
☕️ Ko-Fi:
📚 Further reading and information below:
CDN: #cdn
Django M2M fields: https://do
5 views
11
2
5 months ago 10:08:02 1
Learn Python Backend Development by Building 3 Projects [Full Course]
5 months ago 00:03:22 1
GYPSY JAZZ - HOT CLUB DU NAX - Joseph Joseph - ジプシージャズ
5 months ago 00:34:30 2
Laravel 11 Release, Context, New Hires, & Open-Source Sustainability
5 months ago 00:40:16 1
GUEST 2 - A Horror Short Film
5 months ago 00:04:15 1
The Man I Love (Gypsy Jazz Guitar)
5 months ago 02:37:26 1
Linux сервер для Django проекта (Nginx, gunicorn, PostgreSQL) + простой CI/CD 🔴 #008 Django СТРИМ
5 months ago 01:27:36 1
Parov Stelar - Live at Sziget 2018 (Full Show)
5 months ago 01:41:58 1
Joscho Stephan Trio - Swinging with Mozart, The Beatles, Ray Charles & something else (Maisach 2024)
5 months ago 00:02:56 1
James Brown, 2Pac - Unchained (The Payback/Untouchable)
5 months ago 00:50:19 4
Joe Bonamassa - You and Me (2006) (full album)
5 months ago 01:07:33 2
BEST sound! Vintage Django Reinhardt Style HC Baltimore w/Duved Dunayevsky & Daniel Garlitsky
5 months ago 00:03:21 1
The Ecstasy of Gold - Ennio Morricone ( The Good, the Bad and the Ugly ) [High Quality Audio]
5 months ago 00:03:13 1
Them There Eyes | Lantern Arts Centre | La Bouche Manouche Feat. Irene Serra
5 months ago 01:29:00 1
Paolo Fresu Quintet SAN JAVIER 2023
5 months ago 01:02:18 1
Billie Holiday - The Best Of Classics Masters - Fantastic Vocal Jazz Music of Our History
5 months ago 00:00:19 1
ALL MY FELLAS.
5 months ago 01:04:17 1
Django AJAX/JQuery tutorial: AJAX Django TODO app with JQuery | Django Tutorial
5 months ago 00:23:08 7
Keynote Speaker Quentin Tarantino at UCLA TFT’s Design Showcase West 6/4/16
5 months ago 00:04:54 1
“Bei Mir Bist Du Schön“– Hot House West Swing Orchestra
5 months ago 00:04:16 1
(western tribute) the chain Fleetwood Mac
6 months ago 00:16:01 1
Alix Combelle - The Chronological Classics: 1935-1940 (1993)
6 months ago 00:03:15 1
Alain Delon - Night Tango (Mad Manoush) with lyrics.
6 months ago 00:14:37 1
Stephane Grappelli - The Chronological Classics: 1935-1940 (1993)
6 months ago 00:03:51 4
Janelle Monáe – Make Me Feel [Official Music Video]