Django app to support ltree postgres extension
Project description
django-ltree
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 a backport to Django 1.11 and Python 2.7.
Links
- Pypi https://pypi.org/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
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_ltree-0.5.3.tar.gz.
File metadata
- Download URL: django_ltree-0.5.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e47e33f812c14bbb9405b21fb5b7695a15945edca161fbd0b06075adbdf7732
|
|
| MD5 |
184fcf294f4a1e8fb2eb12020cdcabbf
|
|
| BLAKE2b-256 |
165de7caa4b71165c7a024246352472d708970a3f9dd2a349bed3e6821fbe143
|
File details
Details for the file django_ltree-0.5.3-py2.py3-none-any.whl.
File metadata
- Download URL: django_ltree-0.5.3-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc8b801d7c26cb38f1f10d80330e29cc5bf83969ff62dd50d2e842e22dcd8c7
|
|
| MD5 |
89ed17d5ac5f85da37794b1e9130afac
|
|
| BLAKE2b-256 |
428be0814d6c795f869dd23f7c545a04c1cbb468248b85bd67238a1fdd94f070
|