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
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 migrations 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
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.3.1-py2.py3-none-any.whl.
File metadata
- Download URL: django_ltree-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 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 |
535d80074e9c4ad793357ffe80c45c67ede4a1d1ba01ba92062418b532f749e2
|
|
| MD5 |
01b8f9737c05b23a042d9d88c019b9e5
|
|
| BLAKE2b-256 |
122263b1da424ddbb7cd320ff0cef70b48e33593feb5ee1adca609404e9a58b8
|