Django

Code

Changeset 3947

Show
Ignore:
Timestamp:
10/30/06 07:44:41 (2 years ago)
Author:
russellm
Message:

Fixes #2967 -- Fixed some typos in tutorial 4. Thanks, ramiro.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial04.txt

    r3882 r3947  
    193193 
    194194By default, the ``object_detail`` generic view uses a template called 
    195 ``<app name>/<module name>_detail.html``. In our case, it'll use the template 
     195``<app name>/<model name>_detail.html``. In our case, it'll use the template 
    196196``"polls/poll_detail.html"``. Thus, rename your ``polls/detail.html`` template to 
    197197``polls/poll_detail.html``, and change the ``render_to_response()`` line in 
     
    199199 
    200200Similarly, the ``object_list`` generic view uses a template called 
    201 ``<app name>/<module name>_list.html``. Thus, rename ``polls/index.html`` to 
     201``<app name>/<model name>_list.html``. Thus, rename ``polls/index.html`` to 
    202202``polls/poll_list.html``. 
    203203