RedHat's OpenShift platform uses the 'postgresql' scheme.

Note:
Use .config(env=OPENSHIFT_DB_URL) or some other way to set DATABASE_URL=$OPENSHIFT_DB_URL
This commit is contained in:
bencord0 2012-06-17 16:09:29 +02:00
parent 8d638d74df
commit 34e1863af3

View file

@ -40,7 +40,7 @@ def parse(url):
'PORT': url.port,
})
if url.scheme == 'postgres':
if url.scheme == 'postgres' or url.scheme == 'postgresql':
config['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
if url.scheme == 'postgis':