Skip to main content

Django Categories

Jazzband codecov

Django Categories grew out of our need to provide a basic hierarchical taxonomy management system that multiple applications could use independently or in concert.

As a news site, our stories, photos, and other content get divided into "sections" and we wanted all the apps to use the same set of sections. As our needs grew, the Django Categories grew in the functionality it gave to category handling within web pages.

Features of the project

Multiple trees, or a single tree. You can treat all the records as a single tree, shared by all the applications. You can also treat each of the top level records as individual trees, for different apps or uses.

Easy handling of hierarchical data. We use Django MPTT to manage the data efficiently and provide the extra access functions.

Easy importation of data. Import a tree or trees of space- or tab-indented data with a Django management command.

Metadata for better SEO on web pages Include all the metadata you want for easy inclusion on web pages.

Link uncategorized objects to a category Attach any number of objects to a category, even if the objects themselves aren't categorized.

Hierarchical Admin Shows the data in typical tree form with disclosure triangles

Template Helpers Easy ways for displaying the tree data in templates:

  • Show one level of a tree. All root categories or just children of a specified category

  • Show multiple levels. Ancestors of category, category and all children of category or a category and its children

Categories API

Support for categories API can be added by third party application django-categories-api.

Optional Thumbnail field. Have a thumbnail for each category!

"Categorize" models in settings. Now you don't have to modify the model to add a Category relationship. Use the new settings to "wire" categories to different models.

Release files for django-categories 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-categories 2.0.0
File Size Uploaded
django-categories-2.0.0.tar.gz 126.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-categories 2.0.0
File Interpreter ABI Platform
django_categories-2.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 224.0 kB

Release files / django-categories-2.0.0.tar.gz

Download URL django-categories-2.0.0.tar.gz
Size 126.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8c719e89ed5f19c109ae2592aa52fad9593e56ee04d013f2bf91a8011a1cfc28
BLAKE2b-256 checksum
How to use checksums
2dd3ee479d468a6f7dc5901cbc76ac459912bb90999e350984951dd7463fa18f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release files / django_categories-2.0.0-py2.py3-none-any.whl

Download URL django_categories-2.0.0-py2.py3-none-any.whl
Size 97.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0cb2d366b25f200084015a9f8bf1096d8939fcac881144c50dc361b2f2b7b307
BLAKE2b-256 checksum
How to use checksums
547b8e8fc75fb54ad4edb825d416f8b5b3d57bf940a28f44e6bd73eb47f88b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.9.4

2 release files

1.9.3

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8

3 release files

1.7.2

2 release files

1.7.1

2 release files

1.7

2 release files

1.6.1

2 release files

1.6

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4

2 release files

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2

1 release file

1.1.4

1 release file

1.1.2

1 release file

1.1

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

0.8.9

1 release file

0.8.8

1 release file

0.8.7

1 release file

0.8.6

1 release file

0.8.5

1 release file

0.8.4

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7

1 release file

0.6

1 release file

0.5.2

1 release file

0.5

1 release file

0.4.8

1 release file

0.4.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page