From 9f4d2d5d27d5c0863f9899d603cdb0f4ccca8bf8 Mon Sep 17 00:00:00 2001 From: Joseph Kocherhans Date: Wed, 18 Jan 2006 19:03:19 +0000 Subject: [PATCH] magic-removal: Updated docs to reflect new location of django.core.extensions. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2051 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/forms.txt | 2 +- docs/tutorial03.txt | 4 ++-- docs/tutorial04.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/forms.txt b/docs/forms.txt index 964328a313..7b6ae5e2c8 100644 --- a/docs/forms.txt +++ b/docs/forms.txt @@ -65,7 +65,7 @@ Using the ``AddManipulator`` We'll start with the ``AddManipulator``. Here's a very simple view that takes POSTed data from the browser and creates a new ``Place`` object:: - from django.core.extensions import render_to_response + from django.shortcuts import render_to_response from django.http import Http404, HttpResponse, HttpResponseRedirect from django.models.places import places from django import forms diff --git a/docs/tutorial03.txt b/docs/tutorial03.txt index acd3665f95..e7cc9f7161 100644 --- a/docs/tutorial03.txt +++ b/docs/tutorial03.txt @@ -254,7 +254,7 @@ It's a very common idiom to load a template, fill a context and return an ``HttpResponse`` object with the result of the rendered template. Django provides a shortcut. Here's the full ``index()`` view, rewritten:: - from django.core.extensions import render_to_response + from django.shortcuts import render_to_response from django.models.polls import polls def index(request): @@ -292,7 +292,7 @@ It's a very common idiom to use ``get_object()`` and raise ``Http404`` if the object doesn't exist. Django provides a shortcut. Here's the ``detail()`` view, rewritten:: - from django.core.extensions import get_object_or_404 + from django.shortcuts import get_object_or_404 def detail(request, poll_id): p = get_object_or_404(polls, pk=poll_id) return render_to_response('polls/detail', {'poll': p}) diff --git a/docs/tutorial04.txt b/docs/tutorial04.txt index 5f6537cdc0..eccf13d647 100644 --- a/docs/tutorial04.txt +++ b/docs/tutorial04.txt @@ -48,7 +48,7 @@ included this line:: So let's create a ``vote()`` function in ``myproject/polls/views.py``:: - from django.core.extensions import get_object_or_404, render_to_response + from django.shortcuts import get_object_or_404, render_to_response from django.models.polls import choices, polls from django.http import HttpResponseRedirect