https://github.com/skyl/django-points
API for tagging any model with django.contrib.gis.db.models.PointField(s)
https://github.com/skyl/django-points
Last synced: 11 months ago
JSON representation
API for tagging any model with django.contrib.gis.db.models.PointField(s)
- Host: GitHub
- URL: https://github.com/skyl/django-points
- Owner: skyl
- Created: 2009-07-17T15:04:21.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2009-08-12T03:23:10.000Z (almost 17 years ago)
- Last Synced: 2024-04-16T06:57:03.490Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 24.6 MB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Requirements
============
* GeoDjango
* olwidget
* pinax 0.7b3 or later
* jQuery and jQuery-UI
Installation
============
settings
--------
* put 'points' into INSTALLED_APPS
* add to context processors::
'points.context_processors.ol_media',
'points.context_processors.GAK',
* Get http://code.google.com/apis/maps/signup.html a GOOGLE_MAPS_API key and add it to settings::
GOOGLE_API_KEY = ...
* syncdb
urls
----
* add to your url patterns::
(r'^points/', include('points.urls')),
QuickStart
==========
* At the top of the template::
{% load point_tags %}
* In head you could put::
{% include 'points/jqueryui_add_form.html' %}
{% show_google_map model_instance "map-id" %}
* In body, where you would like the link to the form widget to go::
{% add_point_link model_instance %}
* Where you would like the map to go you might put::
For more information check docs/api.rst; there are many more options and tags.