aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-04-17 18:02:22 +0300
committerBonfaceKilz2023-04-17 18:03:21 +0300
commitb06a1996ac6157c461016e2dcb0f4f4820b84262 (patch)
tree1b15fa55c726f4687102993e03d45de5998b70d0
parentd04779286b49346946120a5801509ba80ee987ba (diff)
downloadgenenetwork3-b06a1996ac6157c461016e2dcb0f4f4820b84262.tar.gz
Update the default SPARQL endpoint
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/settings.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gn3/settings.py b/gn3/settings.py
index 22bdc98..9fec2fb 100644
--- a/gn3/settings.py
+++ b/gn3/settings.py
@@ -14,7 +14,10 @@ TMPDIR = os.environ.get("TMPDIR", tempfile.gettempdir())
RQTL_WRAPPER = "rqtl_wrapper.R"
# SPARQL endpoint
-SPARQL_ENDPOINT = "http://localhost:8891/sparql"
+SPARQL_ENDPOINT = os.environment.get(
+ "SPARQL_ENDPOINT",
+ "http://localhost:9082/sparql")
+
# LMDB path
LMDB_PATH = os.environ.get(
"LMDB_PATH", f"{os.environ.get('HOME')}/tmp/dataset")