From 7d1daf02fad08abdece2e9b684e4ee7aff4c2b13 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 23 Jun 2016 06:35:08 +0000 Subject: Settings: add GN_SERVER_URL --- wqflask/db/call.py | 2 +- wqflask/utility/tools.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/db/call.py b/wqflask/db/call.py index 8b47c0ba..ecffdfa1 100644 --- a/wqflask/db/call.py +++ b/wqflask/db/call.py @@ -44,7 +44,7 @@ def gn_server(path): """ with Bench("GN_SERVER",LOG_SQL): - res = urllib2.urlopen("http://localhost:8880/"+path) + res = urllib2.urlopen(GN_SERVER_URL+path) rest = res.read() res2 = json.loads(rest) logger.info(res2) diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index c467fa74..21c9c1b7 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -168,6 +168,7 @@ def show_settings(): # Cached values WEBSERVER_MODE = get_setting('WEBSERVER_MODE') +GN_SERVER_URL = get_setting('GN_SERVER_URL') LOG_LEVEL = get_setting('LOG_LEVEL') LOG_LEVEL_DEBUG = get_setting_int('LOG_LEVEL_DEBUG') LOG_SQL = get_setting_bool('LOG_SQL') -- cgit v1.2.3