Skip to main content

Efficient Materialized Path tree implementation for Django 1.0+

Project description

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:

  1. Download a release from the treebeard download page or get a development version from the treebeard mercurial repository.

  2. Run python setup.py install

  3. Add ‘treebeard’ to the INSTALLED_APPS section in your django settings file.

  4. 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).

  5. Run python manage.py syncdb

You can find the documentation in

http://docs.tabo.pe/django-treebeard/tip/

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-treebeard-1.5.tar.gz (109.7 kB view details)

Uploaded Source

File details

Details for the file django-treebeard-1.5.tar.gz.

File metadata

File hashes

Hashes for django-treebeard-1.5.tar.gz
Algorithm Hash digest
SHA256 d6c1732220947cbd10638680c10efc329f22534812061d2c297c8eb9cb9e44c1
MD5 7581edebe8bfb3e232a5f5473e787872
BLAKE2b-256 2823902b3617ea0de7fc2e25afa9a91cfe83cd23bc1a7271649e24ecf99683f3

See more details on using hashes here.

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