From 2eb364d126796f681f89fb8aa6b155861e054744 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Thu, 26 Sep 2024 12:30:36 +0200 Subject: [PATCH] fix(core): use a generic setting instead of an environment variable Also s/github.org/github.com --- apis_core/core/templatetags/core.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apis_core/core/templatetags/core.py b/apis_core/core/templatetags/core.py index 25c978466..69eb6cf76 100644 --- a/apis_core/core/templatetags/core.py +++ b/apis_core/core/templatetags/core.py @@ -1,5 +1,3 @@ -import os - from django import template from django.conf import settings @@ -35,6 +33,6 @@ def apis_version(): @register.simple_tag def git_repository_url(): - return os.getenv( - "GITLAB_ENVIRONMENT_URL", "https://github.org/acdh-oeaw/apis-core-rdf/" + return getattr( + settings, "GIT_REPOSITORY_URL", "https://github.com/acdh-oeaw/apis-core-rdf/" )