Django

Code

Ticket #6659 (closed: fixed)

Opened 8 months ago

Last modified 7 months ago

documentation: forloop not introduced in tutorial 4

Reported by: pj Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords: tutorial forloop
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

At the start of "Writing your first Django app, part 4" in the first template code in the section "Write a simple form", I initially wondered where forloop had come from. The documentation text (templates.txt) explains the magic, but a pointer to this seems a good idea.

So, in the quick rundown list that follows the template, I suggest you add:

  • The forloop.counter is an automatic index associated with the for loop that starts at 1. For more information on <whateverformat>forloop</format> variables, see the <whateverlink>forloop</link> documentation.

Attachments

6659.docs.tutorial04.diff (0.7 kB) - added by PJCrosier on 02/28/08 17:07:26.
Introduce forloop.couinter and point to the for loop documentation

Change History

02/28/08 17:07:26 changed by PJCrosier

  • attachment 6659.docs.tutorial04.diff added.

Introduce forloop.couinter and point to the for loop documentation

02/28/08 17:09:06 changed by PJCrosier

  • needs_better_patch changed.
  • has_patch set to 1.
  • needs_tests changed.
  • needs_docs changed.

Quick patch attached, tested with SmileyChris?'s django_docs.

03/18/08 18:39:00 changed by ubernostrum

  • status changed from new to closed.
  • resolution set to fixed.

(In [7315]) Fixed #6659: explained where "forloop.counter" comes from


Add/Change #6659 (documentation: forloop not introduced in tutorial 4)




Change Properties
Action