mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
Auth urls were already set in tutorial/urls.py
This commit is contained in:
parent
15446e9210
commit
2ad3c3bbeb
|
@ -130,12 +130,6 @@ After adding all those names into our URLconf, our final `snippets/urls.py` file
|
||||||
name='user-detail')
|
name='user-detail')
|
||||||
])
|
])
|
||||||
|
|
||||||
# Login and logout views for the browsable API
|
|
||||||
urlpatterns += [
|
|
||||||
url(r'^api-auth/', include('rest_framework.urls',
|
|
||||||
namespace='rest_framework')),
|
|
||||||
]
|
|
||||||
|
|
||||||
## Adding pagination
|
## Adding pagination
|
||||||
|
|
||||||
The list views for users and code snippets could end up returning quite a lot of instances, so really we'd like to make sure we paginate the results, and allow the API client to step through each of the individual pages.
|
The list views for users and code snippets could end up returning quite a lot of instances, so really we'd like to make sure we paginate the results, and allow the API client to step through each of the individual pages.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user