Skip to main content

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

Read More

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

leonardo-geo-2015.5.0.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file leonardo-geo-2015.5.0.tar.gz.

File metadata

File hashes

Hashes for leonardo-geo-2015.5.0.tar.gz
Algorithm Hash digest
SHA256 abd6a44e4b23395d25a940fe585a99c6c6eec1263f6da8e1325e5e719d36142c
MD5 79a16c472ac22c25811d8162a42943fe
BLAKE2b-256 f041fc56f03de0a2e4f8fae2c1fe492848e354be8aef70181c4480157c0c1b2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page