diff options
| author | Travis Swientek | 2015-01-09 11:36:21 -0800 | 
|---|---|---|
| committer | Travis Swientek | 2015-01-09 11:36:21 -0800 | 
| commit | 8ccf5bcc0bb3455c0d71a0e0d845ef54489bb28e (patch) | |
| tree | 58e9fd886ec19b938d20aa8ab8a7654d6e44c339 /docs/tutorial/5-relationships-and-hyperlinked-apis.md | |
| parent | 4d9e7a53565f6301b87999e6bafdb1c2c3c2af3b (diff) | |
| download | django-rest-framework-8ccf5bcc0bb3455c0d71a0e0d845ef54489bb28e.tar.bz2 | |
Tweaked a few issues in the tutorial documentation.
Diffstat (limited to 'docs/tutorial/5-relationships-and-hyperlinked-apis.md')
| -rw-r--r-- | docs/tutorial/5-relationships-and-hyperlinked-apis.md | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/docs/tutorial/5-relationships-and-hyperlinked-apis.md b/docs/tutorial/5-relationships-and-hyperlinked-apis.md index c21efd7f..2841f03e 100644 --- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md +++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md @@ -106,6 +106,8 @@ If we're going to have a hyperlinked API, we need to make sure we name our URL p  After adding all those names into our URLconf, our final `snippets/urls.py` file should look something like this: +    from django.conf.urls import url, include +      # API endpoints      urlpatterns = format_suffix_patterns([          url(r'^$', views.api_root), | 
