django-ancestry-relation

A Django app that makes an abstract Node model available for flat stacking hierarchical data in a database.


License
BSD-3-Clause
Install
pip install django-ancestry-relation==0.4.1

Documentation

Django Ancestry Relation

Provides an abstract model class for heirarchical data to be stored in a database. Provides a manager to interface with the model.

Documentation is in the "docs" directory.

Requirements

  • Python 3.4 or higher
  • Django 1.11

Quick start

  1. Install via pip pip install django-ancestry-relation
  2. Add "django_ancestry_relation" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
    ...,
    'django_ancestry_relation'
]

Notes

  • Most efficient using Postgres as Django DB backend.