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
Pypi
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
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
File details
Details for the file django-dpa-chile-3.0.0.tar.gz.
File metadata
- Download URL: django-dpa-chile-3.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f16b3badd1229701ae5b929634f3cdd7f6edfa3ffd2202b2a46dbff243847291
|
|
| MD5 |
bed06a33dde1727b2673af06d6c4d330
|
|
| BLAKE2b-256 |
8dde54aeb1eca7c5e57965e621b8515d1658ae4b1a28206fb27c63e1bf20237d
|