Skip to main content

django-googlemap is a simple Django app to show the google map from ip addresses.

Project description

django-googlemap is a simple Django app to show the google map from ip addresses.

Detailed documentation is in the “docs” directory.

Quick start

  1. Install django-googlemap:

    pip install django-googlemap
    
  2. Add “django-googlemap” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'googlemap',
    )
    
  3. In your template html:

    {% load gmap_tags %}
    
    <!--
        <ip_list> is a list of ip addresses
        <width> default is auto
        <height> default is 400px
      -->
    {% ip_on_map <ip_List> <width> <height> %}
    
  4. Settings(optional):

    # Download maxmind free geo database from http://dev.maxmind.com/geoip/legacy/geolite/
    
    MAXMIND_CITY_DB_PATH = 'Your data file path'
    

Project details


Release history Release notifications

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

This version
History Node

0.1

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
django-googlemap-0.1.tar.gz (10.6 MB) Copy SHA256 hash SHA256 Source None May 26, 2014

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