Skip to content
Generic geotagging app built on GeoDjango
Python JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
geotagging Fix tests for both geometry and geography fields Mar 18, 2010
.gitignore Ignore egg-info Jan 29, 2010
AUTHORS Tweaked authors file Mar 18, 2010
LICENSE Clerical fixes Mar 18, 2010
README.rst Clerical fixes Mar 18, 2010
setup.py Removed unnecessary requirements from setup Jan 26, 2010

README.rst

Django Geotagging

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.

Installation

Via pip:

pip install -e git+git://github.com:lincolnloop/django-geotagging.git#egg=django-geotagging

The old fashioned way:

  1. Download repo http://github.com/lincolnloop/django-geotagging/tarball/master
  2. Unpack and cd django_geotagging
  3. python setup.py install

Configuration

Add 'geotagging' to your INSTALLED_APPS.

Optional

Register your models with geotagging to add a geotag attribute to the model instances:

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]

http://img.skitch.com/20100129-6p6952tsg2y9s8qwanu62sgms.png

Usage

See how it is used in the tests directory for now.

To Do

  • Lots of clean-up and further testing
  • Plug in some views
You can’t perform that action at this time.