Skip to content

Instantly share code, notes, and snippets.

@joncombe
Created May 18, 2014 00:32
Show Gist options
  • Save joncombe/fd93d0f83409dcf344c7 to your computer and use it in GitHub Desktop.
Save joncombe/fd93d0f83409dcf344c7 to your computer and use it in GitHub Desktop.
GeoDjango setup on Ubuntu 12.04
# https://docs.djangoproject.com/en/1.6/ref/contrib/gis/install/geolibs/
sudo apt-get install binutils libproj-dev gdal-bin
# http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list'
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.3 postgresql-9.3-postgis pgadmin3 postgresql-contrib
# https://docs.djangoproject.com/en/1.6/ref/contrib/gis/install/postgis/
CREATE DATABASE <databasename>;
CREATE EXTENSION postgis;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment