From c86eaae49b3f6713d5e0b7413e6ffe9b3432f2a6 Mon Sep 17 00:00:00 2001 From: Kamil Sampolski Date: Thu, 19 Mar 2020 22:07:25 +0100 Subject: [PATCH] Update README.md We should use path instead of url in urlpatterns, --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41a344fcf..c7c90e898 100644 --- a/README.md +++ b/README.md @@ -114,8 +114,8 @@ router.register(r'users', UserViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ - url(r'^', include(router.urls)), - url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')) + path('', include(router.urls)), + path('api-auth/', include('rest_framework.urls', namespace='rest_framework')) ] ```