Changeset 3947
- Timestamp:
- 10/30/06 07:44:41 (2 years ago)
- Files:
-
- django/trunk/docs/tutorial04.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/tutorial04.txt
r3882 r3947 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 … … 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
