mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-05-16 11:13:15 +00:00
Merge pull request #9 from bencord0/master
Support the 'postgresql' url scheme.
This commit is contained in:
commit
0018edad82
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