5

I am developing a website that requires tagging up different types of content, which favors using django-taggit. But, it would be extremely beneficial if the tags were represented in the database in their natural hierarchy, favoring use of django-mptt or django-treebeard.

What is the best solution to integrate the generic tagging functionality of taggit with the tree-structure provided by mptt / treebeard?

Andrew Swihart
  • 619
  • 5
  • 13

2 Answers2

7

I used treebeard and taggit's custom through models to implement hierarchical tags.

furins
  • 4,979
  • 1
  • 39
  • 57
Tentacles
  • 86
  • 1
  • 2
0

Just found this yesterday, so I can't really tell if it's what you're looking for:

django-categories

A way to handle one or more hierarchical category trees in django.

  • This looks promising, thank you. No django-taggit integration, but it sounds like it's specifically designed to allow multiple apps to efficiently use the same MPTT hierarchies. I will try this out and report back. – Andrew Swihart Feb 18 '11 at 13:54