Skip to main content

A way to handle one or more hierarchical category trees in django.

Project description

This app attempts to provide a generic category system that multiple apps could use. It uses MPTT for the tree storage and provides a custom admin for better visualization (copied and modified from feinCMS).

Goals of the project

  • Have a generic method for handling hierarchical data

  • Allow multiple independent trees, or just one tree

  • Have a widget for use in forms

  • In templates:

    • Show one level of a tree
      • All root categories

      • Just children of a specified category

    • Show multiple levels
      • Ancestors of category, category and all children of category

      • Category and its children

    • An inclusion tag for common methods of formatting categories
      • Grandparent :: Parent :: Child <– current node
        • Add relative links for ancestors

      • Unordered list:
        • Grandparent
          • Parent <– current node
            • Child 1

            • Child 2

            • Child n

Project details


Download files

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

Source Distribution

django-categories-0.4.8.tar.gz (632.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page