Opened 13 years ago

Closed 13 years ago

#15065 closed (invalid)

Installing django.contrib.gis causes all configured databases to use spatial DB engine

Reported by: Clay McClure Owned by: nobody
Component: Database layer (models, ORM) Version: 1.2
Severity: Keywords: postgis
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using multiple databases, it is sometimes desirable to configure some as spatial databases (e.g., using a django.contrib.gis.db.backends.* engine), while configuring others as non-spatial (e.g., using the postgresql_psycopg2 engine). However, if 'django.contrib.gis' is in INSTALLED_APPS, django/db/__init__.py subversively changes all configured non-spatial database engines to their spatial counterparts.

Change History (1)

comment:1 by Clay McClure, 13 years ago

Resolution: invalid
Status: newclosed

User error: we were using the short form engine (postgresql_psycopg2) instead of the long form (django.db.backends.postgresql_psycopg2) in our settings module. Changing that to the long form allows us to use mixed spatial and non-spatial dbs.

Note: See TracTickets for help on using tickets.
Back to Top