summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial03.txt
diff options
context:
space:
mode:
authorCollin Anderson <collin@onetencommunications.com>2014-08-01 21:32:53 -0400
committerErik Romijn <eromijn@solidlinks.nl>2014-08-02 10:17:45 +0200
commite075d2e66baae98c5b5c06bff384665ab50e0223 (patch)
treebb6b7d2f1a5e87726313a0d6d357713d920c7ccd /docs/intro/tutorial03.txt
parent8f9d6e83a005901bc2a368a28017ee52a8c081f8 (diff)
Fixed #23148 -- Minor tweaks in tutorial code samples
Diffstat (limited to 'docs/intro/tutorial03.txt')
-rw-r--r--docs/intro/tutorial03.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt
index c3ab1870c9..54cc019150 100644
--- a/docs/intro/tutorial03.txt
+++ b/docs/intro/tutorial03.txt
@@ -97,7 +97,7 @@ In the ``polls/urls.py`` file include the following code:
from polls import views
urlpatterns = [
- url(r'^$', views.index, name='index')
+ url(r'^$', views.index, name='index'),
]
The next step is to point the root URLconf at the ``polls.urls`` module. In
@@ -466,7 +466,7 @@ provides a shortcut. Here's the ``detail()`` view, rewritten:
.. snippet::
:filename: polls/views.py
- from django.shortcuts import render, get_object_or_404
+ from django.shortcuts import get_object_or_404, render
from polls.models import Question
# ...