django-ltree-2
A tree extension implementation to support hierarchical tree-like data in Django models,
using the native Postgres extension ltree.
Postgresql has already a optimized and very useful tree implementation for data. The extension is ltree
This fork contains is a continuation of the work done by mariocesar on django-ltree and merges the work done by simkimsia on greendeploy-django-ltree
Install
Please remember to uninstall django-ltree before installing django-ltree-2, since both uses django_ltree namespace.
pip install django-ltree-2
Then add django_ltree to INSTALLED_APPS in your Django project settings.
INSTALLED_APPS = [
...,
'django_ltree',
...
]
Then use it like this:
from django_ltree.models import TreeModel
class CustomTree(TreeModel):
...
Requires
- Django 3.2 or superior
- Python 3.9 or higher
Metadata
Release files for django-ltree-2 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_ltree_2-0.1.13.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_ltree_2-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / django_ltree_2-0.1.13.tar.gz
| Download URL | django_ltree_2-0.1.13.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f994ca1ec00dfd1aefac6980db33692fefa23a410ad02a94d5a3327718e3104
|
|
BLAKE2b-256 checksum How to use checksums |
c04779e539dd8410479ce3feecfa7bc6f16d4d3839d68efdc9e8d2c93f2b303f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 10, 2026.
Transparency logRelease files / django_ltree_2-0.1.13-py3-none-any.whl
| Download URL | django_ltree_2-0.1.13-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5094c2f07921fcb1fba0b474159c10c422f9da4325d9d137911f2cd3c5b5c27
|
|
BLAKE2b-256 checksum How to use checksums |
a3d4e4adf5cf8bede8e376ccd1e1a811fe911523d32fbed172f6756c36048773
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 10, 2026.
Transparency log