Skip to main content

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

Pypi

https://pypi.python.org/pypi/django-dpa-chile

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

Metadata

Release files for django-dpa-chile 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-dpa-chile 3.0.0
File Size Uploaded Provenance
django-dpa-chile-3.0.0.tar.gz 4.1 kB Without provenance Details

Release files / django-dpa-chile-3.0.0.tar.gz

Download URL django-dpa-chile-3.0.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f16b3badd1229701ae5b929634f3cdd7f6edfa3ffd2202b2a46dbff243847291
BLAKE2b-256 checksum
How to use checksums
8dde54aeb1eca7c5e57965e621b8515d1658ae4b1a28206fb27c63e1bf20237d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-dpa-chile 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page