Skip to content

Instantly share code, notes, and snippets.

View a-toms's full-sized avatar
🌱
Ecstatic!

Tom a-toms

🌱
Ecstatic!
View GitHub Profile
title description created_at
Add comments to Django in 9 mins (using HTMX) 🧵
Let people leave comments in your Django app, with HTMX to make it interactive.
2024-03-27 03:31:06 -0700

We'll build a simple app that shows user comments in 9 minutes. This includes:

  • allowing users to add comments and reply to comments.
  • showing each user's profile image (using the Gravatar API).
  • adding sample comments into the Django database from yaml (using the Django loaddata management command).