Skip to content
Source code for GeoDjango talk
Python JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Source Code for WeLovePonies: A GeoDjango talk by Eric Palakovich Carr

This repository hosts the end result of my GeoDjango talk. Currently, this is the source code that was made during my talk on July 27th, 2011 ( Later, this will host the source code of the online version of my talk.

You can view the slides on slideshare:

INSTALLATION (apologies for lack of detail):

Install PostGIS using GeoDjango documentation

Create the weloveponies database

CREATE DATABASE weloveponies WITH TEMPLATE template_postgis;

Clone this repository

$ git clone git://

Create the virtualenv in the geodjango_talk directory

$ cd geodjango_talk
$ virtualenv --no-site-packages virenv
$ source virenv/bin/activate
$ pip -E virenv install -r REQUIREMENTS

Update the to include you database information

    'default': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'NAME': 'weloveponies',
        'USER': '<your user name>',
        'PASSWORD': '<your password>',

Sync the DB

$ cd weloveponies
$ python syncdb

Load the data

$ python shell
>>> execfile('../data/')

Try it out:

  1. Run the runserver command
  2. Take a look at people at http://localhost:8000/ponypeople/people/
  3. Take a look at the states visualization at http://localhost:8000/ponypeople/states/


At this point the talk and code is a little incomplete. The biggest issue would be the incredibly large size of the JSON data for the states (about 22MB). Future versions of the talk will discuss techniques to solve this problem (generating custom map tiles, Douglas–Peucker algorithm, etc).

In the meantime, if you want a simplified version of the states you can use the XML feed from this page:

The feed is here:

A person at the talk I gave provided the link to me, but I'm ashamed to say I've already forgotten who exactly that person was. If you're reading this, drop me a message here on github so I can give you my thanks publicly in this README :)

Something went wrong with that request. Please try again.