diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md index 6808780fa..d66f20b37 100644 --- a/docs/tutorial/4-authentication-and-permissions.md +++ b/docs/tutorial/4-authentication-and-permissions.md @@ -135,10 +135,6 @@ If you open a browser and navigate to the browsable API at the moment, you'll fi We can add a login view for use with the browsable API, by editing the URLconf in our project-level `urls.py` file. -Add the following import at the top of the file: - - from django.conf.urls import include - And, at the end of the file, add a pattern to include the login and logout views for the browsable API. urlpatterns += [ @@ -147,7 +143,7 @@ And, at the end of the file, add a pattern to include the login and logout views The `'api-auth/'` part of pattern can actually be whatever URL you want to use. -Now if you open up the browser again and refresh the page you'll see a 'Login' link in the top right of the page. If you log in as one of the users you created earlier, you'll be able to create code snippets again. +Now if you open up the browser again at the `/snippets/` endpoint and refresh the page you'll see a 'Login' link in the top right of the page. If you log in as one of the users you created earlier, you'll be able to create code snippets again. Once you've created a few code snippets, navigate to the '/users/' endpoint, and notice that the representation includes a list of the snippet ids that are associated with each user, in each user's 'snippets' field.