diff options
| author | Xavier Ordoquy | 2015-01-27 23:15:26 +0100 | 
|---|---|---|
| committer | Xavier Ordoquy | 2015-01-27 23:15:26 +0100 | 
| commit | 987880e13138a93d9cc0e44b7ed30297909f7b03 (patch) | |
| tree | 1925d91078eff41d05a8e9840c503b6117d41446 /api-guide/routers/index.html | |
| parent | d8dbd8679080035de4e785a8e7b998fb01f4052b (diff) | |
| download | django-rest-framework-987880e13138a93d9cc0e44b7ed30297909f7b03.tar.bz2 | |
Update documentation
Diffstat (limited to 'api-guide/routers/index.html')
| -rw-r--r-- | api-guide/routers/index.html | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/api-guide/routers/index.html b/api-guide/routers/index.html index 70d136f4..cc7bad73 100644 --- a/api-guide/routers/index.html +++ b/api-guide/routers/index.html @@ -483,20 +483,20 @@ router.register(r'users', UserViewSet)  router.register(r'accounts', AccountViewSet)  urlpatterns = [ -    url(r'^forgot-password/$, ForgotPasswordFormView.as_view(), +    url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),  ]  urlpatterns += router.urls  </code></pre>  <p>Alternatively you can use Django's <code>include</code> function, like so…</p>  <pre><code>urlpatterns = [ -    url(r'^forgot-password/$, ForgotPasswordFormView.as_view(), +    url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),      url(r'^', include(router.urls))  ]  </code></pre>  <p>Router URL patterns can also be namespaces.</p>  <pre><code>urlpatterns = [ -    url(r'^forgot-password/$, ForgotPasswordFormView.as_view(), +    url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),      url(r'^api/', include(router.urls, namespace='api'))  ]  </code></pre> | 
