Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Uses wrong database when GeoDjango is in use #6

Open
AstraLuma opened this issue Feb 23, 2018 · 2 comments
Open

Uses wrong database when GeoDjango is in use #6

AstraLuma opened this issue Feb 23, 2018 · 2 comments

Comments

@AstraLuma
Copy link

If BUILD_WITH_GEO_LIBRARIES is set, the wrong database engine is used.

My work-around is:

django_heroku.settings(locals())

if DATABASES['default']['ENGINE'] in ('django.db.backends.postgresql', 'django.db.backends.postgresql_psycopg2'):
    DATABASES['default']['ENGINE'] = 'django.contrib.gis.db.backends.postgis'
elif DATABASES['default']['ENGINE'] == 'django.db.backends.sqlite3':
    DATABASES['default']['ENGINE'] = 'django.contrib.gis.db.backends.spatialite'
@sigmavirus24
Copy link
Contributor

I would happily merge a pull request that fixes this @astronouth7303

@raelmax
Copy link

raelmax commented Nov 21, 2018

I've open a pull request to fix this issue: #36

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants