diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-06-26 16:52:38 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-06-26 16:52:38 +0000 |
| commit | 8882c55496444d0238fa85e2e7849e79fff9e5e2 (patch) | |
| tree | dc7ee4106ec4c2ce88a17810555583a5641e9616 /docs/intro/tutorial04.txt | |
| parent | e0139910f19e356cc826dc6c4fc870ec18fb647d (diff) | |
Fixed #16169 -- Updated tutorial to match the current project template, specifically the urls.py. Thanks, aaugustin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial04.txt')
| -rw-r--r-- | docs/intro/tutorial04.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index ded5cb2199..86d4eef9b7 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -218,7 +218,7 @@ Read on for details. First, open the ``polls/urls.py`` URLconf. It looks like this, according to the tutorial so far:: - from django.conf.urls.defaults import * + from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('polls.views', (r'^$', 'index'), @@ -229,7 +229,7 @@ tutorial so far:: Change it like so:: - from django.conf.urls.defaults import * + from django.conf.urls.defaults import patterns, include, url from django.views.generic import DetailView, ListView from polls.models import Poll |
