Django-teryt-tree is a Django app that implements TERYT database as tree by django-mptt.
Project description
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
History
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-teryt-tree-0.10.0.tar.gz
.
File metadata
- Download URL: django-teryt-tree-0.10.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f0d30edf3385ecf79bd0bd0774422fff863b85a6480fb374720bb7537c172da |
|
MD5 | 94e081c303a3dbb35a81e822281892ae |
|
BLAKE2b-256 | 00217179a501552264678165df87cd92475c4f39d8856fe11013de6b8cc6baea |
Provenance
File details
Details for the file django_teryt_tree-0.10.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_teryt_tree-0.10.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70fa4372710c2c61c18a3c2453ae638cbf1007d3ecf3aaf7ed9d77bf0fd021e7 |
|
MD5 | ed2a967dd38891fcc673acacf8093155 |
|
BLAKE2b-256 | eb1d1f1fd2c281188f2f9010a2a1de3a017de2539139b7997f073b28bae82b87 |