Skip to main content

Django app for applications that require to use the ubigeos of INEI of Peru.

Project description

django-ubigeo-peru, is an app that will allow you to easily implement the ubiquites of INEI (Perú) in your django app.

Config

For Django >= 4.x use django-ubigeo-peru>=0.5.0

In your settings.py

INSTALLED_APPS = (
    .....
    'ubigeos',
)

Run

python manage.py migrate
python manage.py loaddata ubigeos.json

In your urls.py

For Django <= 1.11.x

urlpatterns = patterns('',
    .....
    (r'^ubigeos/', include('ubigeos.urls')),
)

For Django 2.x and above

urlpatterns = patterns('',
    ....
    path('ubigeos/', include('ubigeos.urls')),
)

License

BSD

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-ubigeo-peru-0.5.0.tar.gz (46.2 kB view hashes)

Uploaded Source

Built Distribution

django_ubigeo_peru-0.5.0-py3-none-any.whl (50.1 kB view hashes)

Uploaded Python 3

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