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
15
2
1 month ago 00:04:00 1
Georgia on My Mind // Joscho Stephan Trio [STUDIO CLIP]
1 month ago 00:00:20 1
this is when you should appreciate abstraction in coding#coding #programming #javascript #python
1 month ago 02:42:53 1
Shonen Jump’s One Piece 4K 60FPS Full Game | Longplay GBA
1 month ago 00:00:17 1
Design vs user experience #coding #programming #javascript #python
1 month ago 01:24:28 1
Ferenc Snétberger | 2023 Solo Guitar Concert | JazzFest Budapest
1 month ago 00:03:15 1
(67) PR SAD x DopeSmoke - Back2Back 2.0 (Special W/BusyOTB - REUPLOAD)
1 month ago 01:48:52 1
Ennio Morricone & Friends ● Greatest Western Music - Ballads & Guitar Themes [HD Audio]
1 month ago 00:00:25 1
Just stackoverflow error #coding #programming #javascript #python
1 month ago 01:36:27 1
Build Realtime Chat App with Django Channels & Web Sockets
1 month ago 00:02:50 1
Al Jolson - There’s a Rainbow ’Round My Shoulder
1 month ago 00:00:09 1
The exception passthrough design pattern #coding #programming #javascript #python
1 month ago 00:06:08 1
Ennio Morricone’s Western (soundtrack highlights / cinematography)
1 month ago 01:23:27 1
White sun of the desert | EASTERN | FULL MOVIE
1 month ago 00:00:11 1
You ignored ignoring your env file #coding #programming #javascript #python
1 month ago 00:00:12 1
Designer - It’s just a simple design #coding #programming #javascript #python
1 month ago 00:56:24 1
GIL в Python: зачем он нужен и как с этим жить
1 month ago 01:35:01 1
Tatneft Music Art. Ансамбль «Мануш-Мануш». Цыганский джаз: от классики до современности.
1 month ago 00:00:19 1
the hello world is the main part #coding #programming #javascript #python
1 month ago 00:06:21 1
Jazz Hot (1938) The Rare Short Film With Jazz Legend Django Reinhardt
1 month ago 02:00:10 1
FULL CONCERT 9th Annual Charm City Django Jazz Fest
1 month ago 00:03:05 1
Showarama Gypsy Jazz - Joseph, Joseph
2 months ago 00:10:10 1
George Benson - On Broadway (12’’ version) ℗ 1978
2 months ago 00:03:57 1
[Electro Swing] Django Reinhardt - Minor Swing (Odd Chap Bootleg)