mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Permit Django 1.9 naming for postgres DB backend.
This commit is contained in:
parent
0bcb216167
commit
552cd6b30b
1 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,10 @@ class DjangoDDPConfig(AppConfig):
|
|||
raise ImproperlyConfigured('No databases configured.')
|
||||
for (alias, conf) in settings.DATABASES.items():
|
||||
engine = conf['ENGINE']
|
||||
if engine != 'django.db.backends.postgresql_psycopg2':
|
||||
if engine not in [
|
||||
'django.db.backends.postgresql',
|
||||
'django.db.backends.postgresql_psycopg2',
|
||||
]:
|
||||
warnings.warn(
|
||||
'Database %r uses unsupported %r engine.' % (
|
||||
alias, engine,
|
||||
|
|
|
|||
Loading…
Reference in a new issue