Django application providing database of European NUTS and LAU
Project description
Django application providing database of European NUTS and LAU
Installation
pip install django-nuts
Configuration
Add 'django_nuts' to settings.INSTALLED_APPS.
Data migration
python manage.py migrate
Load / update data
You may load the data manually from the shell (python manage.py shell)
from django_nuts import load_nuts, load_lau
# load all NUTS and LAU (note that nuts must be loaded first)
load_nuts(), load_lau()
# load NUTS and LAU for some particular countries
load_nuts('CZ', 'SK'), load_lau('CZ', 'SK')
# load NUTS and LAU using celery task (requires celery)
from django_nuts.tasks import load_nuts, load_lau
load_nuts.delay('CZ'), load_lau.delay('CZ')
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
django-nuts-1.0.1.tar.gz
(4.9 kB
view hashes)