{"id":13415834,"url":"https://github.com/jazzband/django-taggit","last_synced_at":"2025-12-12T01:04:15.428Z","repository":{"id":696666,"uuid":"409101","full_name":"jazzband/django-taggit","owner":"jazzband","description":"Simple tagging for django","archived":false,"fork":false,"pushed_at":"2025-03-31T17:17:30.000Z","size":1286,"stargazers_count":3376,"open_issues_count":99,"forks_count":625,"subscribers_count":62,"default_branch":"master","last_synced_at":"2025-05-12T02:50:28.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://django-taggit.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jazzband.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://jazzband.co/donate"]}},"created_at":"2009-12-08T23:40:49.000Z","updated_at":"2025-05-11T21:17:46.000Z","dependencies_parsed_at":"2023-07-05T19:02:35.431Z","dependency_job_id":"fa87cf3f-49eb-4d9f-b589-f42b32bb1dfe","html_url":"https://github.com/jazzband/django-taggit","commit_stats":{"total_commits":790,"total_committers":150,"mean_commits":5.266666666666667,"dds":0.8025316455696203,"last_synced_commit":"8dc5ab0e84b46399d948ebd17dd7c293dc9a1b82"},"previous_names":["alex/django-taggit"],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-taggit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-taggit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-taggit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-taggit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzband","download_url":"https://codeload.github.com/jazzband/django-taggit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253672735,"owners_count":21945482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:52.424Z","updated_at":"2025-12-12T01:04:15.387Z","avatar_url":"https://github.com/jazzband.png","language":"Python","funding_links":["https://jazzband.co/donate"],"categories":["Third-Party Packages","Python","Tagging","标记","Django Utilities","Tagging [🔝](#readme)","Awesome Python"],"sub_categories":["Models","Tagging"],"readme":"django-taggit\n=============\n\n.. image:: https://jazzband.co/static/img/badge.svg\n   :target: https://jazzband.co/\n   :alt: Jazzband\n\n.. image:: https://img.shields.io/pypi/pyversions/django-taggit.svg\n   :target: https://pypi.org/project/django-taggit/\n   :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/djversions/django-taggit.svg\n   :target: https://pypi.org/project/django-taggit/\n   :alt: Supported Django versions\n\n.. image:: https://github.com/jazzband/django-taggit/workflows/Test/badge.svg\n   :target: https://github.com/jazzband/django-taggit/actions\n   :alt: GitHub Actions\n\n.. image:: https://codecov.io/gh/jazzband/django-taggit/coverage.svg?branch=master\n    :target: https://codecov.io/gh/jazzband/django-taggit?branch=master\n\nThis is a `Jazzband \u003chttps://jazzband.co\u003e`_ project. By contributing you agree\nto abide by the `Contributor Code of Conduct\n\u003chttps://jazzband.co/about/conduct\u003e`_ and follow the `guidelines\n\u003chttps://jazzband.co/about/guidelines\u003e`_.\n\n``django-taggit`` a simpler approach to tagging with Django.  Add ``\"taggit\"`` to your\n``INSTALLED_APPS`` then just add a TaggableManager to your model and go:\n\n.. code:: python\n\n    from django.db import models\n\n    from taggit.managers import TaggableManager\n\n\n    class Food(models.Model):\n        # ... fields here\n\n        tags = TaggableManager()\n\n\nThen you can use the API like so:\n\n.. code:: pycon\n\n    \u003e\u003e\u003e apple = Food.objects.create(name=\"apple\")\n    \u003e\u003e\u003e apple.tags.add(\"red\", \"green\", \"delicious\")\n    \u003e\u003e\u003e apple.tags.all()\n    [\u003cTag: red\u003e, \u003cTag: green\u003e, \u003cTag: delicious\u003e]\n    \u003e\u003e\u003e apple.tags.remove(\"green\")\n    \u003e\u003e\u003e apple.tags.all()\n    [\u003cTag: red\u003e, \u003cTag: delicious\u003e]\n    \u003e\u003e\u003e Food.objects.filter(tags__name__in=[\"red\"])\n    [\u003cFood: apple\u003e, \u003cFood: cherry\u003e]\n\nTags will show up for you automatically in forms and the admin.\n\n``django-taggit`` requires Django 3.2 or greater.\n\nFor more info check out the `documentation\n\u003chttps://django-taggit.readthedocs.io/\u003e`_. And for questions about usage or\ndevelopment you can create an issue on Github (if your question is about\nusage please add the `question` tag).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzband%2Fdjango-taggit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzband%2Fdjango-taggit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzband%2Fdjango-taggit/lists"}