From: Damien Lespiau Date: Thu, 3 Mar 2016 23:30:38 +0000 (+0000) Subject: settings: Don't use 'postgre' X-Git-Tag: v2.0.0-rc1~427 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=445a2c8574c91b7e3a59cde5cda871cec0003f1f;p=thirdparty%2Fpatchwork.git settings: Don't use 'postgre' 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 Signed-off-by: Stephen Finucane --- diff --git a/docs/development.md b/docs/development.md index 0ff1fc45..d69f42fa 100644 --- a/docs/development.md +++ b/docs/development.md @@ -244,7 +244,7 @@ using the provided `dev` settings file.
PW_TEST_DB_PASS = 'password'
Password to access the database with
PW_TEST_DB_TYPE = 'mysql'
-
Type of database to use. Options: 'mysql', 'postgresql'
+
Type of database to use. Options: 'mysql', 'postgres'
[doc-contributing]: ../CONTRIBUTING.md diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py index 29732aa2..21aadb5e 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):