mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #1467 from fyfe/fix/postgresql-driver
postgresql_psycopg2 is now an alias for postgresql
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user