use r-string for the regex path

This commit is contained in:
Brian S. Stephan 2023-03-27 14:20:07 -05:00
parent b7976c46d1
commit 93c522037f
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ router.register(r'keys', KarmaKeyViewSet)
urlpatterns = [
path('', index, name='karma_index'),
re_path('^key/(?P<karma_key>.+)/', key_detail, name='karma_key_detail'),
re_path(r'^key/(?P<karma_key>.+)/', key_detail, name='karma_key_detail'),
path('api/', include(router.urls)),
]