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.
This commit is contained in:
Wim Feijen 2021-06-22 11:47:17 +02:00 committed by GitHub
parent e92016ac2e
commit c3182ba71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: