aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2016-08-09 14:27:39 +1000
committerStephen Finucane <stephenfinucane@hotmail.com>2016-08-20 20:32:59 +0100
commitdc6fc4b72226a1381de30da7a68f4755a105db60 (patch)
treeef5bce3ef3a8fcdfaae12eafa320728096799e70
parent198fc9930db054fb4c1b3b7b5df210c07da228c6 (diff)
downloadpatchwork-dc6fc4b72226a1381de30da7a68f4755a105db60.tar
patchwork-dc6fc4b72226a1381de30da7a68f4755a105db60.tar.gz
Put test db host and port into env variables
This is preparation for a Docker-based dev environment. Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
-rw-r--r--patchwork/settings/dev.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 16d3aee..6f26f62 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -30,8 +30,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'),