Likes with Django and Htmx - TikTok Clone - Advanced Features Part 1

Опубликовано: 16 Апрель 2026
на канале: Andreas Jud
588
48

▶ TikTok Clone FULL-STACK COURSE https://www.udemy.com/course/tiktok-c...

In this tutorial we will add likes to the posts, I will show you how to like and remove a like, how to display all the liked posts on the profile page and how to sort them by most likes. To interact with the backend and fetch the data in real time we will use Htmx.

Github repository: https://github.com/andyjud/tiktok-clone
Templates:   / tiktok-clone-140986788  

TikTok Clone Project:   / full-tiktok-to-153492353  

Live Django Site: https://awesomepixx.com

0:00 Intro & Demo
2:10 Model with ManyToMany Field
6:50 Like Logic with Htmx
12:37 Out of Band Swap
17:08 Popular Sorting with annotate and Count
20:12 Liked Tab with double underscore sorting
25:50 User Likes with aggregate and Count


Support me on:
Patreon:   / andreasjud  
Buy me a Coffee: https://www.buymeacoffee.com/andreasjud
Merch Store: https://andreas-juds-store.creator-sp...
Thank you.

Follow me on:
Twitter:   / ajudmeister  
Instagram:   / ajudmeister  

#likes #Django #tiktok #annotate #aggregate #htmx #advanced #Allauth #ironman #alpine #scrolling #infiniteloop #fullstack #tailwindcss #alpinejs #interactivity #webapp #python #pythonprogramming #selftaughtdeveloper #webdevelopment #webdesigner #programmer #coding #codingforbeginners #entrepreneur #solopreneur #stayathomedad