Permit Django 1.9 naming for postgres DB backend.

This commit is contained in:
Tyson Clugg 2015-12-21 20:59:08 +11:00
parent 0bcb216167
commit 552cd6b30b

View file

@ -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,