Ticket #2967: ticket-2967.patch
File ticket-2967.patch, 928 bytes (added by , 18 years ago) |
---|
-
docs/tutorial04.txt
old new 192 192 ``object_id`` for the generic views. 193 193 194 194 By default, the ``object_detail`` generic view uses a template called 195 ``<app name>/<mod ulename>_detail.html``. In our case, it'll use the template195 ``<app name>/<model name>_detail.html``. In our case, it'll use the template 196 196 ``"polls/poll_detail.html"``. Thus, rename your ``polls/detail.html`` template to 197 197 ``polls/poll_detail.html``, and change the ``render_to_response()`` line in 198 198 ``vote()``. 199 199 200 200 Similarly, the ``object_list`` generic view uses a template called 201 ``<app name>/<mod ulename>_list.html``. Thus, rename ``polls/index.html`` to201 ``<app name>/<model name>_list.html``. Thus, rename ``polls/index.html`` to 202 202 ``polls/poll_list.html``. 203 203 204 204 Because we have more than one entry in the URLconf that uses ``object_detail``