Skip to main content

Political-Administrative Division of Chile

Project description

# django-dpa-chile
###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

## Installation

install `django-dpa-chile` using `pip`

```sh
pip install -U django-dpa-chile
```

add `django_dpa_chile` to INSTALLED_APPS

__settings.py__

```python
# ...

INSTALLED_APPS =[
...
'django_dpa_chile'
]

# ...
```

## Populate

```sh
python manage.py populate_dpa_chile
```

## Use

```python
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.

Source Distribution

django-dpa-chile-1.0.3b1.tar.gz (4.0 kB view hashes)

Uploaded Source

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