Entries published on July 16, 2006
Django tips: Hacking FreeComment
Django’s bundled comments application (found in django.contrib.comments
) is incredibly useful; it gives you a nice, out-of-the-box system for adding comments to any site. But, if you look at it closely, really feels more like two applications:
-
The
Comment
model and its helpers, which only allows registered user accounts to post comments. -
The
FreeComment
model and its helpers, which allows anyone at all to post comments.
The first one — based around Comment
— is much more complex by far, and includes pretty much everything World Online has ever needed for its various news and community sites: reviews, ratings, attached images, reputation …