Skip to main content

Political-Administrative Division of Chile

Project description

Django Political-Administrative Division of Chile

Regiones - Provincias - Comunas

Information obtained from the api of Modernization and Digital Government Unit

https://apis.digital.gob.cl/dpa

IMPORT REMOVE OLD VERSION <= 2.0.5

Force remove foreign key

DROP TABLES django_dpa_region DROP TABLES django_dpa_provincia DROP TABLES django_dpa_comuna

Installation

install django-dpa-chile using pip

pip install django-dpa-chile

add dpa_chile to INSTALLED_APPS

settings.py

# …

INSTALLED_APPS =[ … ‘dpa_chile’, ]

# …

Populate

python manage.py migrate django_dpa_chile

python manage.py populate_dpa_chile

Use

from django_dpa_chile.models import Region, Provincia, Comuna

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-dpa-chile, version 3.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django-dpa-chile-3.0.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page