aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/4-authentication-and-permissions.md
diff options
context:
space:
mode:
authorTom Christie2013-01-10 14:00:10 -0800
committerTom Christie2013-01-10 14:00:10 -0800
commit7ae1111d02c4b4ffe525bc9a79c3b55f0b165bc9 (patch)
tree374c02df58418f9db6d9d5c30552f9d2710625e2 /docs/tutorial/4-authentication-and-permissions.md
parentc4e33d8a75be59fdbc0f5f1b8ff04fdf5a43d35b (diff)
parent12efd78fcf40ea8acf95259ffc5269bd9f360d2f (diff)
downloaddjango-rest-framework-7ae1111d02c4b4ffe525bc9a79c3b55f0b165bc9.tar.bz2
Merge pull request #550 from Wackerbarth/tutorial
Revised Tutorial
Diffstat (limited to 'docs/tutorial/4-authentication-and-permissions.md')
-rw-r--r--docs/tutorial/4-authentication-and-permissions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md
index 9576a7f0..5793d38e 100644
--- a/docs/tutorial/4-authentication-and-permissions.md
+++ b/docs/tutorial/4-authentication-and-permissions.md
@@ -77,7 +77,7 @@ We'll also add a couple of views. We'd like to just use read-only views for the
Finally we need to add those views into the API, by referencing them from the URL conf.
url(r'^users/$', views.UserList.as_view()),
- url(r'^users/(?P<pk>[0-9]+)/$', views.UserInstance.as_view())
+ url(r'^users/(?P<pk>[0-9]+)/$', views.UserInstance.as_view()),
## Associating Snippets with Users
@@ -134,7 +134,7 @@ And, at the end of the file, add a pattern to include the login and logout views
urlpatterns += patterns('',
url(r'^api-auth/', include('rest_framework.urls',
- namespace='rest_framework'))
+ namespace='rest_framework')),
)
The `r'^api-auth/'` part of pattern can actually be whatever URL you want to use. The only restriction is that the included urls must use the `'rest_framework'` namespace.