[PATCH 4/7] Put test db host and port into env variables.
Daniel Axtens
dja at axtens.net
Tue Aug 2 10:24:43 AEST 2016
This is preparation for a Docker-based dev environment.
Signed-off-by: Daniel Axtens <dja at axtens.net>
---
patchwork/settings/dev.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index e5c88d28dad4..127e15d9ebcd 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -38,8 +38,8 @@ if django.VERSION < (1, 8):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
- 'HOST': 'localhost',
- 'PORT': '',
+ 'HOST': os.getenv('PW_TEST_DB_HOST', 'localhost'),
+ 'PORT': os.getenv('PW_TEST_DB_PORT', ''),
'USER': os.getenv('PW_TEST_DB_USER', 'patchwork'),
'PASSWORD': os.getenv('PW_TEST_DB_PASS', 'password'),
'NAME': os.getenv('PW_TEST_DB_NAME', 'patchwork'),
--
2.7.4
More information about the Patchwork
mailing list