Metadata-Version: 2.5
Name: django-taggit-anywhere
Version: 2.1.1
Summary: Even more simple approach to tagging with django-taggit
Project-URL: download, https://github.com/bashu/django-taggit-anywhere/zipball/master
Project-URL: homepage, https://github.com/bashu/django-taggit-anywhere/
Author-email: Basil Shubin <basil.shubin@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.11
Requires-Dist: django-taggit>=6.0.0
Requires-Dist: django>=5.2
Description-Content-Type: text/x-rst

django-taggit-anywhere
======================

.. image:: https://badge.fury.io/py/django-taggit-anywhere.svg
    :target: https://badge.fury.io/py/django-taggit-anywhere

.. image:: https://img.shields.io/pypi/pyversions/django-taggit-anywhere.svg
    :target: https://pypi.python.org/pypi/django-taggit-anywhere/

.. image:: https://img.shields.io/pypi/djversions/django-taggit-anywhere.svg
    :target: https://pypi.python.org/pypi/django-taggit-anywhere/

.. image:: https://github.com/bashu/django-taggit-anywhere/actions/workflows/test.yml/badge.svg
    :target: https://github.com/bashu/django-taggit-anywhere/actions/workflows/test.yml

Even more simpler approach to tagging with
django-taggit_. Additionally this project provides easy-to-use
integration with django-taggit-helpers_ and django-taggit-labels_

Authored by `Basil Shubin <http://github.com/bashu>`_ (who is available for freelance/contract work), inspired by django-taggit-helpers_

Installation
------------

First install the module, preferably in a virtual environment. It can be installed from PyPI:

.. code-block:: shell

    pip install django-taggit-anywhere

Requirements
~~~~~~~~~~~~

You must have *django-taggit* installed and configured, see the django-taggit_ documentation for details and setup instructions.

Setup
-----

Make sure the project is configured for django-taggit_.

You'll need to add ``taggit_anywhere`` as a **LAST** item to ``INSTALLED_APPS`` in your project's ``settings.py`` file:

.. code-block:: python

    INSTALLED_APPS += [
        # optional integration with django-taggit-helpers
        'taggit_helpers',  # pip install django-taggit-helpers

        # optional integration with django-taggit-labels
        'taggit_labels',  # pip install django-taggit-labels

        'taggit_anywhere',  # must be last in a list
    ]

There is only one mandatory configuration option you need to set in your ``settings.py``:

.. code-block:: python

    TAGGIT_FOR_MODELS = [
        '<app_name>.<model_name>',
    ]

Contributing
------------

If you like this module, forked it, or would like to improve it, please let us know!
Pull requests are welcome too. :-)

License
-------

``django-taggit-anywhere`` is released under the MIT license.

.. _django-taggit: https://github.com/alex/django-taggit
.. _django-taggit-helpers: https://github.com/mfcovington/django-taggit-helpers
.. _django-taggit-labels: https://github.com/bennylope/django-taggit-labels

Changes
-------

2.1.1 (2026-11-13)
~~~~~~~~~~~~~~~~~~

* Switched build backend from setuptools to hatchling.
* Moved package to ``src/`` layout; tests moved to top-level ``tests/``.
* Ported tests to pytest-django fixtures.
* Removed the ``example`` project, the empty ``locale`` directory and empty ``models.py`` modules.
* Removed unused mypy, django-stubs, djLint and factory-boy dev dependencies.

2.1.0 (2026-10-10)
~~~~~~~~~~~~~~~~~~

* Dropped Python < 3.11 support; 3.11 is now the minimum requirement.
* Added Python 3.15 support.

2.0.0 (2026-08-14)
~~~~~~~~~~~~~~~~~~

* Dropped Python < 3.10 support; now tested on Python 3.10-3.14.
* Dropped Django < 5.2 support; now tested on Django 5.2, 6.0 and 6.1.
* Fixed ``AppConfig.ready()``'s "already tagged" guard, which was unreachable
  dead code and would raise ``ValueError`` if ``ready()`` ever ran twice.

1.0.0 (2021-11-29)
~~~~~~~~~~~~~~~~~~

* Added Django 3+ support.
* Dropped Python 2.7 support.
* Dropped Django 1.10 / 1.11 support.
