[PATCH 1/2] settings: Don't use 'postgre'
Stephen Finucane
stephen.finucane at intel.com
Wed Mar 9 09:08:07 AEDT 2016
From: Damien Lespiau <damien.lespiau at intel.com>
From:
https://wiki.postgresql.org/wiki/Postgres#Changing_name_from_PostgreSQL_to_Postgres
"Does not encourage weird derivations such as 'Postgre'"
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
docs/development.md | 2 +-
patchwork/settings/dev.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/development.md b/docs/development.md
index 0ff1fc4..d69f42f 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -244,7 +244,7 @@ using the provided `dev` settings file.
<dt>PW_TEST_DB_PASS = 'password'</dt>
<dd>Password to access the database with</dd>
<dt>PW_TEST_DB_TYPE = 'mysql'</dt>
- <dd>Type of database to use. Options: 'mysql', 'postgresql'</dd>
+ <dd>Type of database to use. Options: 'mysql', 'postgres'</dd>
</dl>
[doc-contributing]: ../CONTRIBUTING.md
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 29732aa..21aadb5 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -46,7 +46,7 @@ DATABASES = {
},
}
-if os.getenv('PW_TEST_DB_TYPE', None) == 'postgre':
+if os.getenv('PW_TEST_DB_TYPE', None) == 'postgres':
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
if django.VERSION >= (1, 7):
--
2.0.0
More information about the Patchwork
mailing list