freshcrate
Home > Frameworks > django-taggit

django-taggit

django-taggit is a reusable Django application for simple tagging.

Description

django-taggit ============= .. image:: https://jazzband.co/static/img/badge.svg :target: https://jazzband.co/ :alt: Jazzband .. image:: https://img.shields.io/pypi/pyversions/django-taggit.svg :target: https://pypi.org/project/django-taggit/ :alt: Supported Python versions .. image:: https://img.shields.io/pypi/djversions/django-taggit.svg :target: https://pypi.org/project/django-taggit/ :alt: Supported Django versions .. image:: https://github.com/jazzband/django-taggit/workflows/Test/badge.svg :target: https://github.com/jazzband/django-taggit/actions :alt: GitHub Actions .. image:: https://codecov.io/gh/jazzband/django-taggit/coverage.svg?branch=master :target: https://codecov.io/gh/jazzband/django-taggit?branch=master This is a `Jazzband <https://jazzband.co>`_ project. By contributing you agree to abide by the `Contributor Code of Conduct <https://jazzband.co/about/conduct>`_ and follow the `guidelines <https://jazzband.co/about/guidelines>`_. ``django-taggit`` a simpler approach to tagging with Django. Add ``"taggit"`` to your ``INSTALLED_APPS`` then just add a TaggableManager to your model and go: .. code:: python from django.db import models from taggit.managers import TaggableManager class Food(models.Model): # ... fields here tags = TaggableManager() Then you can use the API like so: .. code:: pycon >>> apple = Food.objects.create(name="apple") >>> apple.tags.add("red", "green", "delicious") >>> apple.tags.all() [<Tag: red>, <Tag: green>, <Tag: delicious>] >>> apple.tags.remove("green") >>> apple.tags.all() [<Tag: red>, <Tag: delicious>] >>> Food.objects.filter(tags__name__in=["red"]) [<Food: apple>, <Food: cherry>] Tags will show up for you automatically in forms and the admin. ``django-taggit`` requires Django 3.2 or greater. For more info check out the `documentation <https://django-taggit.readthedocs.io/>`_. And for questions about usage or development you can create an issue on Github (if your question is about usage please add the `question` tag).

Release History

VersionChangesUrgencyDate
6.1.0Imported from PyPI (6.1.0)Low4/21/2026
6.0.0Tag 6.0.0Low7/29/2024
5.0.1Tag 5.0.1Low10/26/2023
5.0.0Tag 5.0.0Low10/24/2023
4.0.0Tag 4.0.0Low5/4/2023
3.1.0Tag 3.1.0Low11/18/2022
3.0.0Tag 3.0.0Low5/2/2022
2.1.0Tag 2.1.0Low1/24/2022
2.0.0Tag 2.0.0Low11/16/2021
1.5.1Tag 1.5.1Low7/5/2021
1.5.0Tag 1.5.0Low6/30/2021
1.4.0Tag 1.4.0Low4/19/2021
1.3.0Tag 1.3.0Low5/22/2020
1.2.0Tag 1.2.0Low12/4/2019
1.1.0Tag 1.1.0Low3/22/2019
1.0.0Tag 1.0.0Low3/17/2019
0.24.0Tag 0.24.0Low2/20/2019
0.23.0Tag 0.23.0Low8/8/2018
v0.10Tag v0.10Low8/17/2013
v0.10a1Tag v0.10a1Low3/25/2013

Dependencies & License Audit

Loading dependencies...

Similar Packages

pre-commitA framework for managing and maintaining multi-language pre-commit hooks.v4.6.0
azure-core-tracing-opentelemetryMicrosoft Azure Azure Core OpenTelemetry plugin Library for Pythonazure-template_0.1.0b6187637
spdx-toolsSPDX parser and tools.0.8.5
lacesDjango components that know how to render themselves.0.1.2
django-tasksA backport of Django's built in Tasks framework0.12.0