Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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


Force remove foreign key

DROP TABLES django_dpa_region DROP TABLES django_dpa_provincia DROP TABLES django_dpa_comuna


install django-dpa-chile using pip

pip install django-dpa-chile

add dpa_chile to INSTALLED_APPS

# …

INSTALLED_APPS =[ … ‘dpa_chile’, ]

# …


python migrate django_dpa_chile

python populate_dpa_chile


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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-dpa-chile-3.0.0.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None Aug 28, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page