mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-05-04 21:44:50 +00:00
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:
parent
8d638d74df
commit
34e1863af3
1 changed files with 1 additions and 1 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in a new issue