]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
settings: Don't use 'postgre'
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 3 Mar 2016 23:30:38 +0000 (23:30 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 8 Mar 2016 22:04:17 +0000 (22:04 +0000)
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@intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
docs/development.md
patchwork/settings/dev.py

index 0ff1fc45d3aa9e0984d7891d8bcf5b08d91d45aa..d69f42fa3c801ac623fe23fab5ca1d6b0532dfbf 100644 (file)
@@ -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
index 29732aa28deebf4227cedde4e96f4cb2af60bc68..21aadb5ebecb35cef592c3b62165c231018df54e 100644 (file)
@@ -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):