diff options
| author | Tom Christie | 2013-09-25 09:44:26 +0100 | 
|---|---|---|
| committer | Tom Christie | 2013-09-25 09:44:26 +0100 | 
| commit | 21cd6386593aea0b122abec1c5cc3bd5c544aa87 (patch) | |
| tree | b7d197c9c04f56448bee36c4789c93c66fb541a8 /docs/tutorial | |
| parent | 9a5b2eefa92dede844ab94d049093e91ac98af5b (diff) | |
| parent | e8c6cd5622f62fcf2d4cf2b28b504fe5ff5228f9 (diff) | |
| download | django-rest-framework-21cd6386593aea0b122abec1c5cc3bd5c544aa87.tar.bz2 | |
Merge master
Diffstat (limited to 'docs/tutorial')
| -rw-r--r-- | docs/tutorial/6-viewsets-and-routers.md | 2 | ||||
| -rw-r--r-- | docs/tutorial/quickstart.md | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/docs/tutorial/6-viewsets-and-routers.md b/docs/tutorial/6-viewsets-and-routers.md index 29c53162..3b9fd7d4 100644 --- a/docs/tutorial/6-viewsets-and-routers.md +++ b/docs/tutorial/6-viewsets-and-routers.md @@ -61,6 +61,7 @@ To see what's going on under the hood let's first explicitly create a set of vie  In the `urls.py` file we bind our `ViewSet` classes into a set of concrete views.      from snippets.views import SnippetViewSet, UserViewSet +    from rest_framework import renderers      snippet_list = SnippetViewSet.as_view({          'get': 'list', @@ -101,6 +102,7 @@ Because we're using `ViewSet` classes rather than `View` classes, we actually do  Here's our re-wired `urls.py` file. +    from django.conf.urls import patterns, url, include      from snippets import views      from rest_framework.routers import DefaultRouter diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index f15e75c0..06eec3c4 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -12,7 +12,7 @@ Create a new Django project named `tutorial`, then start a new app called `quick      # Create a virtualenv to isolate our package dependencies locally      virtualenv env -    source env/bin/activate +    source env/bin/activate  # On Windows use `env\Scripts\activate`      # Install Django and Django REST framework into the virtualenv      pip install django | 
