Skip to main content

Django categorize content app.

Project description

Django Category

Simple category app providing category and tag models.

Travis Coveralls Release


  1. Python 2.7, 3.5-3.7
  2. Django 1.11, 2.0, 2.1


  1. Install or add django-category to your Python path.
  2. Add category to your INSTALLED_APPS setting.
  3. This package uses django’s internal sites framework. Add django.contrib.sites to your INSTALLED_APPS setting and include the required SITE_ID = 1 (or similiar). The official docs can be found here:
  4. Optional: django-object-tools provides a category tree view. See for installation instructions.


Enable categorization and/or tagging on a model by creating ManyToMany fields to the models provided by django-category, for example:

from django import models

class MyModel(models.Model):
    categories = models.ManyToManyField(
        help_text='Categorize this item.'
    tags = models.ManyToManyField(
        help_text='Tag this item.'


class Category

Category model to be used for categorization of content. Categories are high level constructs to be used for grouping and organizing content, thus creating a site’s table of contents.


Short descriptive title for the category to be used for display.


Some titles may be the same and cause confusion in admin UI. A subtitle makes a distinction.


Short descriptive unique name to be used in urls.


Optional parent to allow nesting of categories.


Limits category scope to selected sites.

class Tag

Tag model to be used for tagging content. Tags are to be used to describe your content in more detail, in essence providing keywords associated with your content. Tags can also be seen as micro-categorization of a site’s content.


Short descriptive name for the tag to be used for display.


Short descriptive unique name to be used in urls.


Categories to which the tag belongs.


Praekelt Foundation

  • Shaun Sephton
  • Jonathan Bydendyk
  • Hedley Roos



  1. Django 2.1 support. The minimum supported Django version is now 1.11.
  2. Added coveralls


  1. Django 2 support. The minimum supported Django version is now 1.10.


  1. Compatibility for Python 3.5 and Django 1.11.


  1. Actual unit tests.
  2. Compatibility from Django 1.6 to 1.9.


  1. __unicode__ method now returns a sensible result.


  1. Fix tree view.


  1. Added sites and subtitle fields.


  1. Dependency cleanup.


  1. Added get_absolute_url on Category


  1. Use prepopulate_fields for admin interface
  2. Parent category field added
  3. South migration path created
  4. Tree view of categories and tags

0.0.4 (2011-08-24)

  1. Docs, testrunner.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-category, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_category-2.0.1-py2.py3-none-any.whl (28.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-category-2.0.1.tar.gz (14.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page