Skip to content

Entries published on June 25, 2007

1 entry published on this date. See also: all entries published in June 2007, full archive.

Hacking comments without hacking comments

Way back when I first set up this site, and threw together a minimal blog application to power it, I didn’t bother much with enhancing Django’s comment system. But later on, when I started getting a lot of comment spam (trivia: as of this moment, 15,153 comments have been posted here, and 14,406 of them — roughly 95% — have been spam) I realized I needed to do something, and quickly hacked Django’s comments application to add moderation.

At the time it seemed a reasonable thing to do, but it’s been haunting me ever since; having to port a bunch of hacks whenever I want to upgrade Django is a pain. A while back I posted the beginnings of an unobtrusive moderation system using signals, but it wasn’t everything I wanted it to be, and as I worked on rewriting my blog application I found myself writing …

Entry published June 25, 2007. Read full entry.