diff options
| author | José Padilla | 2015-01-20 10:33:12 -0400 |
|---|---|---|
| committer | José Padilla | 2015-01-20 10:33:12 -0400 |
| commit | c0fa92e9adce47d8cde2c6dea4b1e30f64f5a92c (patch) | |
| tree | 577fe935ec0c84c44235fee98237e626d272ad0d | |
| parent | e39d8410de26003421f7e644f9206833a3b9bbe0 (diff) | |
| parent | 3ca8f85a5b54e6f78fac273732b6c5be2ad25ae4 (diff) | |
| download | django-rest-framework-c0fa92e9adce47d8cde2c6dea4b1e30f64f5a92c.tar.bz2 | |
Merge pull request #2438 from soooooot/patch-1
correcting unclosed quote in docs routers.md
| -rw-r--r-- | docs/api-guide/routers.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api-guide/routers.md b/docs/api-guide/routers.md index 3a8a8f6c..9c9bfb50 100644 --- a/docs/api-guide/routers.md +++ b/docs/api-guide/routers.md @@ -60,7 +60,7 @@ For example, you can append `router.urls` to a list of existing views… router.register(r'accounts', AccountViewSet) urlpatterns = [ - url(r'^forgot-password/$, ForgotPasswordFormView.as_view(), + url(r'^forgot-password/$', ForgotPasswordFormView.as_view(), ] urlpatterns += router.urls @@ -68,14 +68,14 @@ For example, you can append `router.urls` to a list of existing views… Alternatively you can use Django's `include` function, like so… urlpatterns = [ - url(r'^forgot-password/$, ForgotPasswordFormView.as_view(), + url(r'^forgot-password/$', ForgotPasswordFormView.as_view(), url(r'^', include(router.urls)) ] Router URL patterns can also be namespaces. urlpatterns = [ - url(r'^forgot-password/$, ForgotPasswordFormView.as_view(), + url(r'^forgot-password/$', ForgotPasswordFormView.as_view(), url(r'^api/', include(router.urls, namespace='api')) ] |
