From bc57c8e940f0451c85e9b796a2f697d322828081 Mon Sep 17 00:00:00 2001 From: Zacharis278 Date: Mon, 18 Dec 2023 08:50:33 -0500 Subject: [PATCH] feat: change proctorio redirect to static page --- edx_exams/templates/proctorio_download.html | 1 + edx_exams/urls.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 edx_exams/templates/proctorio_download.html diff --git a/edx_exams/templates/proctorio_download.html b/edx_exams/templates/proctorio_download.html new file mode 100644 index 00000000..6db8d2d4 --- /dev/null +++ b/edx_exams/templates/proctorio_download.html @@ -0,0 +1 @@ +loading Proctorio extension... diff --git a/edx_exams/urls.py b/edx_exams/urls.py index fb2e66a7..d49c0ab2 100644 --- a/edx_exams/urls.py +++ b/edx_exams/urls.py @@ -21,7 +21,7 @@ from django.conf import settings from django.contrib import admin from django.urls import include, path -from django.views.generic import RedirectView +from django.views.generic import TemplateView from edx_api_doc_tools import make_api_info, make_docs_urls from edx_exams.apps.api import urls as api_urls @@ -40,7 +40,7 @@ path('lti/', include('lti_consumer.plugin.urls')), # url for the exam inside the Proctorio browser extension the browser will fall through # to this redirect if the browser extension is not installed - path('browser_lock/', RedirectView.as_view(url='https://getproctorio.com'), name='browser_lock'), + path('browser_lock/', TemplateView.as_view(template_name='proctorio_download.html'), name='browser_lock'), ] if settings.DEBUG and os.environ.get('ENABLE_DJANGO_TOOLBAR', False): # pragma: no cover