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
Install django-googlemap:
pip install django-googlemap
Add “django-googlemap” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'googlemap', )
Add urls.py:
urlpatterns = patterns('', ... url(r'^googlemap/', include('googlemap.urls')), )
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 %}
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 details)
File details
Details for the file django-googlemap-0.5.tar.gz
.
File metadata
- Download URL: django-googlemap-0.5.tar.gz
- Upload date:
- Size: 10.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
720ab10a6c7a4a1f4dc3962dac43a0b6b04bf6d86b2cb60c4d0a3f168e5c9593
|
|
MD5 |
6c1db3ce1b4f11f93a066d0a0ab55f3b
|
|
BLAKE2b-256 |
f39d70610df68ec2ab6880a563f2a47145b2a16048da4d55a2a447bef0e9be18
|