Is it possible to integrate django-taggit and djan

2019-05-11 21:34发布

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?

2条回答
在下西门庆
2楼-- · 2019-05-11 22:30

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.

查看更多
仙女界的扛把子
3楼-- · 2019-05-11 22:31

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

查看更多
登录 后发表回答