django-taggit:简单的 Django 标记工具-python

时间:2021-06-18 18:25:48
【文件属性】:
文件名称:django-taggit:简单的 Django 标记工具-python
文件大小:96KB
文件格式:ZIP
更新时间:2021-06-18 18:25:48
其它杂项 django-taggit:简单的 Django 标记工具 django-taggit 这是一个 Jazzband 项目。 通过贡献,您同意遵守贡献者行为准则并遵循准则。 django-taggit 一种更简单的 Django 标记方法。 将“taggit”添加到您的 INSTALLED_APPS 然后只需添加一个 TaggableManager 到您的模型然后去: from django.db import models from taggit.managers import TaggableManager class Food(models.Model): # ... fields here tags = TaggableManager() 然后你可以像这样使用 API: >>> apple = Food.objects.create(name="apple") >>> apple.tags.add("red", "green", "delicious") >>> apple .tags.all() [ , , ]
【文件预览】:
django-taggit-master
----setup.py(38B)
----.gitignore(1KB)
----MANIFEST.in(201B)
----LICENSE(2KB)
----setup.cfg(1KB)
----taggit()
--------__init__.py(279B)
--------views.py(1KB)
--------managers.py(24KB)
--------models.py(6KB)
--------utils.py(4KB)
--------apps.py(245B)
--------admin.py(378B)
--------migrations()
--------locale()
--------forms.py(1KB)
----.github()
--------workflows()
----README.rst(2KB)
----tests()
--------templates()
--------test_admin.py(1KB)
--------urls.py(287B)
--------__init__.py(0B)
--------views.py(178B)
--------models.py(10KB)
--------admin.py(89B)
--------test_utils.py(455B)
--------migrations()
--------forms.py(834B)
--------custom_parser.py(168B)
--------settings.py(1KB)
--------test_forms.py(2KB)
--------tests.py(47KB)
----.coveragerc(227B)
----CONTRIBUTING.rst(2KB)
----requirements()
--------test.txt(21B)
--------docs.txt(7B)
----CHANGELOG.rst(10KB)
----docs()
--------admin.rst(1KB)
--------api.rst(4KB)
--------index.rst(495B)
--------conf.py(469B)
--------custom_tagging.rst(8KB)
--------getting_started.rst(756B)
--------forms.rst(2KB)
--------faq.rst(550B)
--------changelog.rst(30B)
--------external_apps.rst(2KB)
--------contributing.rst(33B)
----AUTHORS(549B)
----tox.ini(1000B)

网友评论