diff options
| author | Erik Romijn <eromijn@solidlinks.nl> | 2014-08-02 10:26:08 +0200 |
|---|---|---|
| committer | Erik Romijn <eromijn@solidlinks.nl> | 2014-08-02 10:26:08 +0200 |
| commit | 893f188386cf156ce90cafbc136e335da16f8247 (patch) | |
| tree | 3f50c3347e9d3ee74092241351d42e1d256a9cb4 /docs/intro/tutorial03.txt | |
| parent | ee0208108bd66cec04b28aca76eb506d9a2e1fd3 (diff) | |
[1.7.x] Fixed #23148 -- Minor tweaks in tutorial code samples
Backport of e075d2e66baae98c5b5c06bff384665ab50e0223 from master.
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -rw-r--r-- | docs/intro/tutorial03.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 999d31492f..d94bca084a 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 = patterns('', - 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 # ... |
