Is it possible to integrate django-taggit and django-mptt / django-treebeard?
Asked Answered
C

2

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?

Coridon answered 15/2, 2011 at 6:13 Comment(1)
This question might be of interest if you want duplicate nodes in the tree.Sawyers
A
7

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

Arboreal answered 29/10, 2011 at 19:48 Comment(1)
Cool, I actually ended up doing the same thing. Thanks for making that great how-to blog post.Coridon
C
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.

Choriamb answered 15/2, 2011 at 9:29 Comment(1)
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.Coridon

© 2022 - 2024 — McMap. All rights reserved.