Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A django app with an abstract model which helps to define tree style categories with unlimited sub levels

Project Description


This is a simple Django apllication that provide an abstract class to create a tree style category model.
Using this model we can define unlimited number of sublevel categories only by one model class.

Install the application package using pip::

pip install django-categorytree

add 'categorytree' to the INSTALLED_APPS list on your settings file

How to use

Import the Category abstract model from categorytree and use it to create your category model::

from lcategorytree.models import Category

class MyCategoryModel(Category):

In your application file mport the CategoryAdmin abstract ModelAdmin class and use it to register your model to the admin site::

from categorytree.admin import CategoryAdmin

class MyCategoryAdmin(CategoryAdmin):

class Meta:
model = MyCategoryModel

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(2.5 kB) Copy SHA256 Hash SHA256
Egg 2.7 May 30, 2017
(2.6 kB) Copy SHA256 Hash SHA256
Egg 2.7 May 30, 2017
(2.6 kB) Copy SHA256 Hash SHA256
Source None Jun 10, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate