From c3182ba71b80d4294a0475b05ff077a6fa73eba3 Mon Sep 17 00:00:00 2001 From: Wim Feijen Date: Tue, 22 Jun 2021 11:47:17 +0200 Subject: [PATCH] Update index.md Provides a sane default for general urls.py Removes a line which is not necessary (less is more), because that info was already stated above. --- docs/index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 28e330250..c62e5eb68 100644 --- a/docs/index.md +++ b/docs/index.md @@ -120,7 +120,7 @@ If you're intending to use the browsable API you'll probably also want to add RE urlpatterns = [ ... - path('api-auth/', include('rest_framework.urls')) + path('api/v1/', include('rest_framework.urls')) ] Note that the URL path can be whatever you want. @@ -141,8 +141,6 @@ Any global settings for a REST framework API are kept in a single configuration ] } -Don't forget to make sure you've also added `rest_framework` to your `INSTALLED_APPS`. - We're ready to create our API now. Here's our project's root `urls.py` module: