Tagging
I've added tagging to this site. As most of my avid readers know, this blog is made in Django.
A little background how I did it and why I choose to do it that way.
I had two options on how to implement tagging: generic relations using the contenttypes framework and many-to-many relations.
I went with the many-to-many relationship primarily because I had the impression that Contenttypes API isn't stable atm:
Generic relations will most likely be moved out of core and into the content-types contrib package to avoid core dependencies on optional components.
Well, as far as I can see, the django trunk has already made this change.
The second reason I went with the ManyToMany relationship was because I didn't need or want the Generic relations. I just needed to tag posts.
So there.
Originally published at http://devblog.timmedina.com/2008/7/3/tagg...



