Skip to content

A PostGIS db backend that works with standard_conforming_strings.

Notifications You must be signed in to change notification settings

matthewwithanm/django-scspostgis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A bug in Django 1.3’s PostGIS adapter makes it unusable when standard_conforming_string is enabled, which is the default for PostgreSQL 9.1.

A patch is available, but those not inclined to run a patched version of Django can use this package instead. Just install it and then update your database settings:

DATABASES = {
    'default': {
        'ENGINE': 'scspostgis',
        ...
    }
}

If you’re using South, you’ll also need the following setting:

SOUTH_DATABASE_ADAPTERS = {
    'default': 'south.db.postgresql_psycopg2',
}

If you upgrade to Django 1.4, you should uninstall scspostgis and use the standard ‘django.contrib.gis.db.backends.postgis’ engine.

About

A PostGIS db backend that works with standard_conforming_strings.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages