From 93c522037f55bc7a395e486db089eca18014e8ca Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 27 Mar 2023 14:20:07 -0500 Subject: [PATCH] use r-string for the regex path --- karma/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karma/urls.py b/karma/urls.py index 2a5d1db..374bcb9 100644 --- a/karma/urls.py +++ b/karma/urls.py @@ -10,7 +10,7 @@ router.register(r'keys', KarmaKeyViewSet) urlpatterns = [ path('', index, name='karma_index'), - re_path('^key/(?P.+)/', key_detail, name='karma_key_detail'), + re_path(r'^key/(?P.+)/', key_detail, name='karma_key_detail'), path('api/', include(router.urls)), ]