This application is designed to store and query geographic information on any model in your Django project. It is still under development, use at your own risk.
pip install -e git+git://github.com:lincolnloop/django-geotagging.git#egg=django-geotagging
The old fashioned way:
- Download repo http://github.com/lincolnloop/django-geotagging/tarball/master
- Unpack and
python setup.py install
'geotagging' to your
Register your models with geotagging to add a
geotag attribute to the model
import geotagging class MyModel(models.Model): ... geotagging.register(MyModel)
Add the geotag widget to your admin:
from geotagging.admin.options import GeotagsInline class MyModelAdmin(admin.ModelAdmin): ... inlines = [GeotagsInline]
See how it is used in the
tests directory for now.
- Lots of clean-up and further testing
- Plug in some views