Skip to main content

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 country
load_nuts('CZ'), load_lau('CZ')

# 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


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-0.1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

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