From 623304a19dbbb7bfe67b865edbaf47205bdba429 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 18 Aug 2014 11:10:41 +0100 Subject: Latest docs deploy --- tutorial/4-authentication-and-permissions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tutorial/4-authentication-and-permissions.html') diff --git a/tutorial/4-authentication-and-permissions.html b/tutorial/4-authentication-and-permissions.html index 8f59a2f5..01d84818 100644 --- a/tutorial/4-authentication-and-permissions.html +++ b/tutorial/4-authentication-and-permissions.html @@ -304,7 +304,7 @@ url(r'^users/(?P<pk>[0-9]+)/$', views.UserDetail.as_view()),

Adding login to the Browsable API

If you open a browser and navigate to the browsable API at the moment, you'll find that you're no longer able to create new code snippets. In order to do so we'd need to be able to login as a user.

-

We can add a login view for use with the browsable API, by editing the URLconf in our project-level urls.py file.

+

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
 
-- cgit v1.2.3