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

随声附和 提交于 2020-01-13 11:15:19

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/5000457/is-it-possible-to-integrate-django-taggit-and-django-mptt-django-treebeard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!