mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
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:
parent
e92016ac2e
commit
c3182ba71b
|
@ -120,7 +120,7 @@ If you're intending to use the browsable API you'll probably also want to add RE
|
||||||
|
|
||||||
urlpatterns = [
|
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.
|
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.
|
We're ready to create our API now.
|
||||||
Here's our project's root `urls.py` module:
|
Here's our project's root `urls.py` module:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user