From b7976c46d149356fb20e285a54eba388e6da8d76 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Tue, 7 Mar 2023 15:03:41 -0600 Subject: [PATCH] fix the loading of the karma UI --- karma/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karma/urls.py b/karma/urls.py index 408e827..2a5d1db 100644 --- a/karma/urls.py +++ b/karma/urls.py @@ -1,6 +1,6 @@ """URL patterns for the karma views.""" from django.conf.urls import include -from django.urls import path +from django.urls import path, re_path from rest_framework.routers import DefaultRouter from karma.views import KarmaKeyViewSet, index, key_detail @@ -10,7 +10,7 @@ router.register(r'keys', KarmaKeyViewSet) urlpatterns = [ path('', index, name='karma_index'), - path('key//', key_detail, name='karma_key_detail'), + re_path('^key/(?P.+)/', key_detail, name='karma_key_detail'), path('api/', include(router.urls)), ]