django-ltree
An 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 a backport to Django 1.11 and Python 2.7.
Links
- Pypi https://pypi.org/project/django-ltree/
- Source code https://github.com/boryszef/django-ltree
- Bugs https://github.com/boryszef/django-ltree/issues
- Contribute https://github.com/boryszef/django-ltree/pulls
- Documentation
TODO
Install
pip install django-ltree
Then add django_ltree to INSTALLED_APPS in your Django project settings.
And make sure to run django_ltree migrations before you added the PathField
python manage.py migrate django_ltree
django_ltree migrations will install the ltree extension if not exist.
You can alternatively specify the django_ltree dependency in the migrations of
your applications that requires PathField, and run migrations smoothly.
class Migration(migrations.Migration):
dependencies = [
('django_ltree', '__latest__'),
]
Requires
- Django 1.11 or superior
- Python 2
Testing
Make sure you have Postgres installed. Then simply run tox in the root directory of the project.
Release files for django-ltree-fork 0.4.5
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_fork-0.4.5.tar.gz | 5.0 kB | Details |
Release files / django_ltree_fork-0.4.5.tar.gz
| Download URL | django_ltree_fork-0.4.5.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82f1eb979b55889615c41736e566aa55a6f40becac846cd2d9fe386dbadffd1b
|
|
BLAKE2b-256 checksum How to use checksums |
ce204db5046ca5cd37a48886860495099b878678a01f6b2ccc5fdb75cacaf5d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5
|