Merge pull request #1467 from fyfe/fix/postgresql-driver

postgresql_psycopg2 is now an alias for postgresql
This commit is contained in:
Antoine Nguyen
2018-07-12 10:34:20 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ class DeployCommand(Command):
info["NAME"] = "%s.db" % name
return info
if info["ENGINE"] == "postgres":
info["ENGINE"] = "django.db.backends.postgresql_psycopg2"
info["ENGINE"] = "django.db.backends.postgresql"
default_port = 5432
else:
info["ENGINE"] = "django.db.backends.mysql"
@@ -99,7 +99,7 @@ query = {{ query|safe }}
if dburl else settings.DATABASES["default"])
if "sqlite" in db_settings["ENGINE"]:
dbtype = "sqlite"
elif "psycopg2" in db_settings["ENGINE"]:
elif "postgresql" in db_settings["ENGINE"]:
dbtype = "postgres"
else:
dbtype = "mysql"