diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-10-14 20:10:13 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-10-14 20:10:13 +0000 |
| commit | f71f8546283dbdf698c7578f8f9154045c84f9e7 (patch) | |
| tree | 1ae0aa237970d1b67ec8504d9f3f425305b3e155 /docs/tutorial04.txt | |
| parent | b773bf45c3011dc95617dcbec9584c8d139c27cc (diff) | |
Fixed #626 -- Moved template modules to django.core.template package. django.core.template_loader is deprecated, in favor of django.core.template.loader.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial04.txt')
| -rw-r--r-- | docs/tutorial04.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial04.txt b/docs/tutorial04.txt index 3e6d6205bb..737d8deb1f 100644 --- a/docs/tutorial04.txt +++ b/docs/tutorial04.txt @@ -197,8 +197,8 @@ objects" and "display a detail page for a particular type of object." By default, the ``object_detail`` generic view uses a template called ``<app_label>/<module_name>_detail``. In our case, it'll use the template ``"polls/polls_detail"``. Thus, rename your ``polls/detail.html`` template to -``polls/polls_detail.html``, and change the ``template_loader.get_template()`` -line in ``vote()``. +``polls/polls_detail.html``, and change the ``render_to_response()`` line in +``vote()``. Similarly, the ``object_list`` generic view uses a template called ``<app_label>/<module_name>_list``. Thus, rename ``polls/index.html`` to |
