Skip to main content

Continual of django-ltree

Project description

django-ltree

Downloads Documentation Status CI Pypi Badge pre-commit.ci status

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 is a continuation of the work done by mariocesar on django-ltree and merges the work done by simkimsia on greendeploy-django-ltree

Install

pip install django-ltree-2

Then add django_ltree to INSTALLED_APPS in your Django project settings.

INSTALLED_APPS = [
    ...,
    'django_ltree',
    ...
]

Then use it like this:

from django_ltree.models import TreeModel


class CustomTree(TreeModel):
    ...

Requires

  • Django 3.2 or superior
  • Python 3.9 or higher

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_ltree_2-0.1.9.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

django_ltree_2-0.1.9-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file django_ltree_2-0.1.9.tar.gz.

File metadata

  • Download URL: django_ltree_2-0.1.9.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure

File hashes

Hashes for django_ltree_2-0.1.9.tar.gz
Algorithm Hash digest
SHA256 66e7f6a9d90cb1be004a9cdb2f80b45572a579ca61ca0693d6659c2d97b71d1e
MD5 cbe4d86839a4823dc281f4b5094e009e
BLAKE2b-256 cc2b32a44f2e535f6d341dd78fe59aa2022fc7b17eedfcec27ffa8980687d25e

See more details on using hashes here.

File details

Details for the file django_ltree_2-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: django_ltree_2-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-1014-azure

File hashes

Hashes for django_ltree_2-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2490c453d8afef1412d70dac77d61d8e2dbc8dde0ac3d8db8390736d51feba91
MD5 014150663ffda2f479bd8a2e0cf21063
BLAKE2b-256 d95e055d5e439f026fa4c3430c960656406fbbdab641a2bb31f8835d4dda847d

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