Skip to main content

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

Project details

Release history Release notifications

This version


Download files

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

Files for django_categorytree, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_categorytree-0.1.1.tar.gz (2.5 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size django_categorytree-0.1.2.tar.gz (2.6 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size django_categorytree-0.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page