From 670a78536f80e5d80028c610d52b973ba9eba3e3 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Mon, 22 Dec 2014 11:35:15 +0200 Subject: [PATCH] Clarified intention of the first code example. --- docs/api-guide/routers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api-guide/routers.md b/docs/api-guide/routers.md index 2512c6bab..4e6fa16d1 100644 --- a/docs/api-guide/routers.md +++ b/docs/api-guide/routers.md @@ -21,7 +21,7 @@ Here's an example of a simple URL conf, that uses `SimpleRouter`. router.register(r'accounts', AccountViewSet) urlpatterns = router.urls -A more common usage of routers is +A more common usage of routers is to include it in order to combine it with other patterns. from django.conf.urls import patterns, include, url from rest_framework import routers @@ -31,6 +31,7 @@ A more common usage of routers is router.register(r'accounts', AccountViewSet) urlpatterns = patterns('', + url(r'^forgot-password/$, ForgotPasswordFormView.as_view(), url(r'^', include(router.urls)) )