Auth urls were already set in tutorial/urls.py

This commit is contained in:
José Padilla 2017-11-24 14:38:30 -05:00
parent 15446e9210
commit 2ad3c3bbeb
No known key found for this signature in database
GPG Key ID: AAE3EF579B2987B1

View File

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