aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/4-authentication-and-permissions.md
diff options
context:
space:
mode:
authorRichard Wackerbarth2013-01-04 05:46:30 -0600
committerRichard Wackerbarth2013-01-10 15:37:15 -0600
commit674c9029c1b0f3680bfc04dd87b58f9bd21988de (patch)
treef2b21e0a547937bddfe79778d510ab57c47ffe1d /docs/tutorial/4-authentication-and-permissions.md
parentc4e33d8a75be59fdbc0f5f1b8ff04fdf5a43d35b (diff)
downloaddjango-rest-framework-674c9029c1b0f3680bfc04dd87b58f9bd21988de.tar.bz2
Imply an additional element in infinite lists
This is to allow the addition of elements without having to change existing lines of code
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.