use r-string for the regex path
This commit is contained in:
parent
b7976c46d1
commit
93c522037f
@ -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)),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user