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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django3-dpa-chile-0.4.0.tar.gz.

File metadata

  • Download URL: django3-dpa-chile-0.4.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for django3-dpa-chile-0.4.0.tar.gz
Algorithm Hash digest
SHA256 91c3972f54e345720fac077b72efe707c9c73d860d66e9977b7b797a782af5b8
MD5 16ee00deefa0f3d9575588fa592b33c9
BLAKE2b-256 599408ef1dfcddceb75c5b851d0bb108cc4d417c028c55affa4a661f7f56702b

See more details on using hashes here.

File details

Details for the file django3_dpa_chile-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django3_dpa_chile-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3e102cf91ed1636f59d95fb6984c94bb03e0bea94fdda55af28ca7b53f56911
MD5 12f247c2a664f5f3ba76f5529c8c3b8a
BLAKE2b-256 1c1f7294fff02ff9d6803cc722129f6f939501cddb03538100995d6ca6cf08cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page