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:
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
You can find the documentation in
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-treebeard-1.51.tar.gz
.
File metadata
- Download URL: django-treebeard-1.51.tar.gz
- Upload date:
- Size: 109.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e5863b19e01bd0f2474ab955b40964f857b01543cc4e45dcf3a3d6ad9bb5e55 |
|
MD5 | 23e6d0449a5b593e16d57ddb4a0f99ce |
|
BLAKE2b-256 | 9f5d1e0936b113a1c32b1d3ef210b229744cc6c3c439dc1ab1b4154dae848975 |