Skip to main content

Django-teryt-tree is a Django app that implements TERYT database as tree by django-mptt.

Project description

https://badge.fury.io/py/django-teryt-tree.png https://travis-ci.org/ad-m/django-teryt-tree.png?branch=master https://coveralls.io/repos/ad-m/django-teryt-tree/badge.svg?branch=master&service=github https://travis-ci.org/ad-m/django-teryt-tree.svg?branch=master

Django-teryt-tree is a Django app that implements TERYT database as tree by django-mptt.

Documentation

The full documentation is at https://django-teryt-tree.readthedocs.org.

Quickstart

Install django-teryt-tree:

pip install django-teryt-tree

Then add to INSTALLEDA__APPS:

INSTALLED_APPS+=('teryt_tree')

Then use it in a project:

import teryt_tree

or:

from teryt_tree.models import JednostkaAdministracyjna

To load TERC register database:

wget "http://www.stat.gov.pl/broker/access/prefile/downloadPreFile.jspa?id=1110" -O TERC.xml.zip
unzip TERC.xml.zip
pip install lxml
python manage.py load_teryt TERC.xml
rm TERC.xml*

or one-line:

wget "http://www.stat.gov.pl/broker/access/prefile/downloadPreFile.jspa?id=1110"  -o /dev/null -O - | unzip -p - TERC.xml | python manage.py load_teryt -

Features

  • TODO

Cookiecutter Tools Used in Making This Package

  • cookiecutter

  • cookiecutter-djangopackage

History

0.6.0 (2016-07-3)

  • Add django-rest-framework extensions

  • Add django-autocomplete-light v3 support

  • Add JednostkaAdministracyjnaQuerySet.area

  • Add one-line TERC import command

  • Add cache to Travis

  • Fix syntax in HISTORY.rst

0.5.0 (2016-04-14)

  • Added TravisCI badge in README.rst

  • Added download_url in setup.py

0.4.0 (2016-04-14)

  • Remove PassThroughManagerMixin

0.1.0 (2015-10-02)

  • First release on PyPI.

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-teryt-tree-0.6.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

django_teryt_tree-0.6.0-py2.py3-none-any.whl (13.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-teryt-tree-0.6.0.tar.gz.

File metadata

File hashes

Hashes for django-teryt-tree-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a3cd5c27f8499c2a1f5860d1c107883b8625fc6046d3c5342e0eda8519e32f14
MD5 447e71b83fe2c0f79c8a7f53676225d8
BLAKE2b-256 180a4baef63fa318b7e2619115fdae50da8fd8bfb13f7b478b246c833e2117f2

See more details on using hashes here.

Provenance

File details

Details for the file django_teryt_tree-0.6.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_teryt_tree-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f9392bf4927353e30b8ceccd56de7e69cc67579a3ffa60d2ce6d7586ba7918c1
MD5 75b0d20a8aa62b4750275fafddd1c3da
BLAKE2b-256 91e379f396fe10b4d5f86cbb7e32deb19e1a933e59de385c6b851300ff46643c

See more details on using hashes here.

Provenance

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