Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Leonardo widgets related with Geolocation

Project Description

Leonardo widgets related with Geo such as Google Map Widget or photo gallery with Geolocation etc..

Installation

pip install leonardo_geo

or as leonardo bundle

pip install django-leonardo["geo"]

Add leonardo_geo to APPS list, in the local_settings.py:

APPS = [
    ...
    'leonardo_geo'
    ...
]

Load new template to db

python manage.py sync_all

Optional Dependencies

For advance widgets and features this module use GeoDjango is used so a spatial database is required. We recommend PostGIS. Django’s docs include some installation instructions although it is renowned for being tricky.

Spatialite is another option although it can be tricky to set up. On Ubuntu, you can do the following:

$ sudo apt-get install spatialite-bin libspatialite3 libgeos++-dev libgdal-dev libproj0

The pysqlite python package is also required although it doesn’t support C extensions by default. To work-around this, there are two options:

  1. Download the package, edit setup.cfg to enable C extensions and install:
$ pip install pysqlite --no-install
$ vim $VIRTUAL_ENV/build/pysqlite/setup.cfg
$ pip install pysqlite
  1. Use a custom branch:
$ pip install git+git://github.com/tinio/pysqlite.git@extension-enabled#egg=pysqlite

Release history Release notifications

This version
History Node

2016.3.0

History Node

2015.5.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
leonardo-geo-2016.3.0.tar.gz (6.0 kB) Copy SHA256 hash SHA256 Source None Mar 25, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page