A django that implements in a model the ltree postgres extension
Project description
django-ltree
An ltree extension implementation to support hierarchical tree-like data in django models
Postgresql has already a optimized and very useful tree implementation for data. The extension is ltree
Links
- Pypi https://pypi-hypernode.com/project/django-ltree/
- Source code https://github.com/mariocesar/django-ltree
- Bugs https://github.com/mariocesar/django-ltree/issues
- Contribute https://github.com/mariocesar/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
This will install the ltree
extension
Requires:
- Django 2.0 or superior
- Python 3.6 or superior
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file django_ltree-0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: django_ltree-0.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 768c5a328342e18f66ee0feaa90dcb02cdd2de89f45ac1ae498e0f5cc64b9f2f |
|
MD5 | dd71c12f05678bef42c6d67e47dea736 |
|
BLAKE2b-256 | 3abfb1453c87a83e5dc1599394e7d3a14a8efd21a1463470fccde708a5631f31 |