Ticket #2967: ticket-2967.patch

File ticket-2967.patch, 928 bytes (added by ramiro, 8 years ago)
  • docs/tutorial04.txt

    old new  
    192192      ``object_id`` for the generic views.
    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
    198198``vote()``.
    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
    204204Because we have more than one entry in the URLconf that uses ``object_detail``
Back to Top