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. Add urls.py:

    urlpatterns = patterns('',
        ...
        url(r'^googlemap/', include('googlemap.urls')),
    )
  1. In your template html:

    {% load gmap_tags %}
    
    <!--
        <ip_list> is a list of ip addresses
        <width> default is auto
        <height> default is 400px
        <show_input> default if false
      -->
    {% ip_on_map <ip_List> <width> <height> True %}
  2. 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


Download files

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

Source Distribution

django-googlemap-0.5.tar.gz (10.6 MB view hashes)

Uploaded Source

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