是否可以集成django-taggit和django-mptt/django-treebeard? [英] Is it possible to integrate django-taggit and django-mptt / django-treebeard?

查看:92
本文介绍了是否可以集成django-taggit和django-mptt/django-treebeard?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,该网站需要标记不同类型的内容,这有利于使用django-taggit.但是,如果标签以其自然层次结构在数据库中表示,而有利于使用django-mptt或django-treebeard,那将是非常有益的.

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.

将taggit的通用标记功能与mptt/treebeard提供的树结构集成的最佳解决方案是什么?

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

推荐答案

我使用了

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

这篇关于是否可以集成django-taggit和django-mptt/django-treebeard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆