简体   繁体   English

Django taggit 与前端的集成(自动完成和自动建议)

[英]Django taggit integration with frontend (auto-complete and auto-suggest)

I'm looking for a django app that provides a form-filed with taggit integration and a front end JS tagging library as mentioned here: jQuery autocomplete tagging plug-in like StackOverflow's input tags?我正在寻找一个 django 应用程序,它提供一个带有 taggit 集成的表单文件和一个前端 JS 标记库,如这里提到的: jQuery autocomplete tagging plugin like StackOverflow's input tags?

Do I have to implement this myself or is there an existing django app that integrates django-taggit with a front-end tagging library.我是否必须自己实现这个,或者是否有一个现有的 django 应用程序将 django-taggit 与前端标记库集成在一起。

Ideally I would want auto-suggest and auto-complete.理想情况下,我希望自动建议和自动完成。 Admin integration would be nice.管理员集成会很好。

This will be useful for others too since every body wants SO like tagging or more advanced tagging.这对其他人也很有用,因为每个人都想要标记或更高级的标记。

I found the following options for implementing auto-complete in django-taggit .我在django-taggit找到了以下用于实现自动完成django-taggit

https://github.com/Jaza/django-taggit-autocomplete https://github.com/Jaza/django-taggit-autocomplete

https://bitbucket.org/fabian/django-taggit-autosuggest https://bitbucket.org/fabian/django-taggit-autosuggest

https://github.com/20tab/django-taggit-live https://github.com/20tab/django-taggit-live

https://github.com/gnotaras/django-taggit-autocomplete-modified https://github.com/gnotaras/django-taggit-autocomplete-modified

Some of these libraries seem to be old and broken on the latest django versions.在最新的 django 版本中,其中一些库似乎很旧且已损坏。

I also found an alternative library to django-taggit called django-tagulous which has auto-complete integrated.我还找到了django-taggit的替代库,名为django-tagulous ,它集成了自动完成功能。

Note: It doesn't have Django 1.11 support yet in the main branch.注意:它的主分支中还没有 Django 1.11 支持。

A nice bonus is it uses Select2 JS library and has admin integration.一个不错的好处是它使用 Select2 JS 库并具有管理集成。

https://github.com/radiac/django-tagulous https://github.com/radiac/django-tagulous

For Django 2.0 and newer versions, maybe you would like to check https://pypi.org/project/django-autocomplete-light/对于 Django 2.0 及更新版本,也许您想查看https://pypi.org/project/django-autocomplete-light/

It's very well documented for many use case and, working with compatible packages are also including on https://django-autocomplete-light.readthedocs.io/en/master/对于许多用例,它都有很好的文档记录,并且使用兼容包也包括在https://django-autocomplete-light.readthedocs.io/en/master/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM