django-taggit:django的简单标记

时间:2021-04-27 13:53:39
【文件属性】:
文件名称:django-taggit:django的简单标记
文件大小:90KB
文件格式:ZIP
更新时间:2021-04-27 13:53:39
Python django-taggit 这是一个项目。 通过捐款,您同意遵守《并遵守。 django-taggit一种使用Django进行标记的简单方法。 在您的INSTALLED_APPS添加"taggit" ,然后在模型中添加一个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 " , " gr
【文件预览】:
django-taggit-master
----setup.py(38B)
----.gitignore(1KB)
----MANIFEST.in(201B)
----LICENSE(2KB)
----setup.cfg(1KB)
----taggit()
--------__init__.py(120B)
--------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(22B)
--------docs.txt(7B)
----CHANGELOG.rst(10KB)
----docs()
--------admin.rst(1KB)
--------api.rst(4KB)
--------index.rst(502B)
--------conf.py(469B)
--------custom_tagging.rst(8KB)
--------getting_started.rst(756B)
--------forms.rst(2KB)
--------faq.rst(548B)
--------changelog.rst(30B)
--------external_apps.rst(2KB)
--------contributing.rst(33B)
----AUTHORS(549B)
----tox.ini(1014B)

网友评论