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.11.0 (2016-09-13)

  • Add locale to package

0.10.0 (2016-09-13)

  • Add missing migrations

  • Add dummy urlpatterns

0.9.0 (2016-09-13)

  • Fix runtests

0.8.0 (2016-12-10)

  • Add bumpversion

  • Add AppConfig with translation app_label

  • Update polish locale

  • Extract settings as standalone file

  • Add manage.py

0.7.0 (2016-09-13)

  • Drop django 1.7 support

  • Add support django 1.10

  • Add --limit param to load_teryt command

0.6.0 (2016-07-03)

  • 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.11.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_teryt_tree-0.11.0-py2.py3-none-any.whl (16.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for django-teryt-tree-0.11.0.tar.gz
Algorithm Hash digest
SHA256 df9275215f6b261e23e83f1a6f651d7e45fefdfffbb393259876fe4f8bed8136
MD5 f3eebec1dd9f18c78a6606cf7b879947
BLAKE2b-256 3f750de16af943f2f660c3602a83020caabda4e63ffdff9de6b388ad0d352ed9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_teryt_tree-0.11.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b833c416ac82e8beae3015055d6a4dab141088b9727760fa84e98c8495e7434b
MD5 ee8c2af0f658681a4bfc0ee1cc0258aa
BLAKE2b-256 d845a3e74802154caeb4b111b10ffa25e73b4cd030bb98fa9fa67223634b3ebe

See more details on using hashes here.

Supported by

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