aboutsummaryrefslogtreecommitdiffstats
path: root/docs/index.md
diff options
context:
space:
mode:
authorTom Christie2014-09-24 09:02:53 +0100
committerTom Christie2014-09-24 09:02:53 +0100
commit4ffae7c0e959e42fa2dde830ac144e94ee8aae71 (patch)
treeeb878800eb479fdf072b8315282ec2b1fdea8ba2 /docs/index.md
parent8495cd898a5d34f00858a379b54e39cd19ded215 (diff)
parentda385c9c1f9deeeefd705154a6e6612d6d62f41b (diff)
downloaddjango-rest-framework-4ffae7c0e959e42fa2dde830ac144e94ee8aae71.tar.bz2
Merge pull request #1899 from collinanderson/urls
Remove patterns and strings from urls in tutorial.
Diffstat (limited to 'docs/index.md')
-rw-r--r--docs/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/index.md b/docs/index.md
index 6dcb962f..e4c971f9 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -85,10 +85,10 @@ Add `'rest_framework'` to your `INSTALLED_APPS` setting.
If you're intending to use the browsable API you'll probably also want to add REST framework's login and logout views. Add the following to your root `urls.py` file.
- urlpatterns = patterns('',
+ urlpatterns = [
...
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
- )
+ ]
Note that the URL path can be whatever you want, but you must include `'rest_framework.urls'` with the `'rest_framework'` namespace.