From b2065f8326ed6e2460d2f2300668c62850e2f038 Mon Sep 17 00:00:00 2001 From: Pedro Demarchi Gomes <pdg16@inf.ufpr.br> Date: Fri, 1 Nov 2019 15:54:04 -0300 Subject: [PATCH] get BASE_URL from enviroment --- settings.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 5800d53..98d79f3 100644 --- a/settings.py +++ b/settings.py @@ -1,7 +1,15 @@ +import os + '''Settings used by LDE regression test''' '''URL API to test''' -BASE_URL = 'https://simcaq.c3sl.ufpr.br/api/v1/' + +if os.environ.get('BASE_URL') is not None: + BASE_URL = os.environ.get('BASE_URL') +else: + BASE_URL = 'https://simcaq.c3sl.ufpr.br/api/v1/' + +print("using BASE_URL=",BASE_URL) '''List of all base routes available to test''' BASE_ROUTE_LIST = [ -- GitLab