diff options
| author | Tom Christie | 2014-09-26 14:39:20 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-09-26 14:39:20 +0100 |
| commit | ac71d9aaae27f620fdb0167a4ad586e754a844a3 (patch) | |
| tree | 15c19362b95cc72f104f1d41a6799399ba97d36f /docs/index.md | |
| parent | 609014460861fdfe82054551790d6439292dde7b (diff) | |
| parent | 411511622d163ad81720651869b80dc9de526d65 (diff) | |
| download | django-rest-framework-ac71d9aaae27f620fdb0167a4ad586e754a844a3.tar.bz2 | |
Merge master
Diffstat (limited to 'docs/index.md')
| -rw-r--r-- | docs/index.md | 4 |
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. |
