Skip to main content

Political-Administrative Division of Chile

Project description

MIT License

Django Political-Administrative Division of Chile

División Política-Administrativa de Chile para Django

=================================================

Regiones - Provincias - Comunas

=================================================

This fork was created to update the package to work with the latest versions of Django 3.2+ (4.1 included) and Python, as the original developer appears to be inactive.

Information obtained from the api of Modernization and Digital Government Unit

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

Pypi

====

https://pypi.org/project/django3-dpa-chile/

Installation


Install django3-dpa-chile using pip

pip install django3-dpa-chile

Add d3_dpa_chile to INSTALLED_APPS

settings.py


# ...



INSTALLED_APPS =[

...

'd3_dpa_chile',

]



# ...

Populate


python manage.py migrate d3_dpa_chile



python manage.py populate_dpa_chile

Use


from d3_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.

Source Distribution

django3-dpa-chile-0.4.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

django3_dpa_chile-0.4.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

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