diff --git a/website/tosti/settings/base.py b/website/tosti/settings/base.py index 547dc47e..c5f206b7 100644 --- a/website/tosti/settings/base.py +++ b/website/tosti/settings/base.py @@ -282,4 +282,4 @@ AGE_VERIFICATION_INSTITUTE_VALUE = "ru.nl" YIVI_SERVER_URL = os.environ.get("YIVI_SERVER_URL") -YIVI_SERVER_TOKEN = os.environ.get("YIVI_SERVER_TOKEN") \ No newline at end of file +YIVI_SERVER_TOKEN = os.environ.get("YIVI_SERVER_TOKEN") diff --git a/website/tosti/settings/development.py b/website/tosti/settings/development.py index 0bd0bbec..318c4b45 100644 --- a/website/tosti/settings/development.py +++ b/website/tosti/settings/development.py @@ -50,7 +50,3 @@ "BACKEND": "django.core.cache.backends.locmem.LocMemCache", } } - -# Yivi settings -YIVI_SERVER = "https://yivi.tosti.science.ru.nl" -YIVI_TOKEN = "test-token-tosti" diff --git a/website/tosti/settings/production.py b/website/tosti/settings/production.py index a54a5fa2..dc92cdc3 100644 --- a/website/tosti/settings/production.py +++ b/website/tosti/settings/production.py @@ -185,8 +185,8 @@ ("Olympus", "en"), ], "url": [ - (os.environ.get('SAML_BASE_URL'), "nl"), - (os.environ.get('SAML_BASE_URL'), "en"), + (os.environ.get("SAML_BASE_URL"), "nl"), + (os.environ.get("SAML_BASE_URL"), "en"), ], }, } diff --git a/website/yivi/services.py b/website/yivi/services.py index d0e88fb5..101791c4 100644 --- a/website/yivi/services.py +++ b/website/yivi/services.py @@ -5,4 +5,4 @@ def get_yivi_client() -> Yivi: """Get a Yivi Client.""" - return Yivi(settings.YIVI_SERVER, token=settings.YIVI_TOKEN) + return Yivi(settings.YIVI_SERVER_URL, token=settings.YIVI_SERVER_TOKEN)