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
https://apis.digital.gob.cl/dpa
Installation
------------
install **django-dpa-chile** using **pip**
```sh
pip install django-dpa-chile
```
add **dpa_chile** to **INSTALLED_APPS**
settings.py
-----------
```python
# ...
INSTALLED_APPS =[
...
'dpa_chile',
]
# ...
```
Populate
--------
```sh
python manage.py migrate django_dpa_chile
python manage.py populate_dpa_chile
```
Use
---
```python
from django_dpa_chile.models import Region, Provincia, Comuna
```
=================================================
``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 django-dpa-chile
```
add **dpa_chile** to **INSTALLED_APPS**
settings.py
-----------
```python
# ...
INSTALLED_APPS =[
...
'dpa_chile',
]
# ...
```
Populate
--------
```sh
python manage.py migrate django_dpa_chile
python manage.py populate_dpa_chile
```
Use
---
```python
from django_dpa_chile.models import Region, Provincia, Comuna
```
Project details
Release history Release notifications | RSS feed
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-2.0.2.tar.gz
(4.2 kB
view hashes)