Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Follow the instructions at http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS15Ubuntu1004src to retrieve, build and install version 1.5 of PostGIS.

...

Build The Template

Ignore the instructions on that page. Instead:

...

Note: in these instructions, the template name is template_postgis
You can choose any template name you like, but you will need to use your particular template name where appropriate when creating a database from the template.

Update development.py

In your project/development.py file, update the "ENGINE" of your default database definition:

Code Block
python
python

DATABASES = {
    'default': {
        'NAME': 'oercommons_db',
        'ENGINE': 'django.contrib.gis.db.backends.postgis', # <== Update this value
        'USER': '',
        'PASSWORD': ''
    }
}