Skip to main content

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

PyPI version

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


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

django_ltree-0.3.1-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2 Python 3

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

Hashes for django_ltree-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 535d80074e9c4ad793357ffe80c45c67ede4a1d1ba01ba92062418b532f749e2
MD5 01b8f9737c05b23a042d9d88c019b9e5
BLAKE2b-256 122263b1da424ddbb7cd320ff0cef70b48e33593feb5ee1adca609404e9a58b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page