Skip to content

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

License

Notifications You must be signed in to change notification settings

mahmoodasiddiqui/django-googlemap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-googlemap

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')),
    )
  4. 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 %}
  5. Settings(optional):

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.0%
  • JavaScript 17.3%
  • HTML 2.7%