Efficient Materialized Path tree implementation for Django 1.0+
Django-treebeard is a library that implements efficient tree implementations for the Django Web Framework 1.0+.
It includes 3 different tree implementations: Adjacency List, Materialized Path and Nested Sets. Each one has
it's own strength and weaknesses but share the same API, so it's easy to switch between implementations.
Django-treebeard uses Django Model Inheritance with abstract classes to let you define your own models.
To use django-treebeard:
- Download a release from the treebeard download page or get a development version from the treebeard mercurial repository;
- Run python setup.py install;
- Add 'treebeard' to the INSTALLED_APPS section in your django settings file;
- Create a new model that inherits from one of django-treebeard's abstract tree models: mp_tree.MP_Node (materialized path), ns_tree.NS_Node (nested sets) or al_tree.AL_Node (adjacency list);
- Run python manage.py syncdb.
Author:
--------
Gustavo Picon
- Links to openSUSE:Factory / python-django-treebeard
- Has a link diff
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:python:backports/python-django-treebeard && cd $_
- Create Badge
Source Files (show unmerged sources)
Filename | Size | Changed |
---|---|---|
django-treebeard-4.5.1.tar.gz | 0000784384 766 KB | |
python-django-treebeard.changes | 0000004357 4.25 KB | |
python-django-treebeard.spec | 0000002746 2.68 KB | |
update-tests.patch | 0000010363 10.1 KB |
Comments 0