Quickstart
Django application that provides hashtag/tag functionality on top of django-taggit, with reusable, consumer-agnostic helpers to render and filter tags consistently across sites.
Requirements
These packages are required:
- Python (3.9, 3.10, 3.11, 3.12, 3.13, 3.14)
- Django (3.2, 4.2, 5.2)
We highly recommend and only officially support the latest patch release of each Python and Django series.
Installation
-
Install using
pip:pip install django-hashtag -
Add
taggitandhashtagto yourINSTALLED_APPS:settings.pyINSTALLED_APPS = [ # ...other apps "taggit", "hashtag", ] -
Run migrations:
python manage.py migrate
What you get
- A tag data model (
MyTag,MyTagGroup,MyTaggedItem). - A reusable
hashtag_chipstemplate tag to render tags as themeable chips. hashtag.filteringhelpers to filter list views by the active tag.- A configurable canonical tag URL via the
HASHTAG_TAG_URL_NAMEsetting (defaulttagged).
See the Templates guide for usage.
Example
- Check the demo repo on GitHub.
Development
See the Contribution guidelines for how to clone the repository, run the test suite and contribute changes back to django-hashtag.