🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

django-dpa-chile

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-dpa-chile

Political-Administrative Division of Chile

3.0.0
PyPI
Maintainers
1

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

Pypi

https://pypi.python.org/pypi/django-dpa-chile

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

Keywords

django chile comunas regiones provincias

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts