Boston Python Workshop/Saturday/Web app project: Difference between revisions

Content added Content deleted
imported>Ltwhite
imported>Ltwhite
Line 648: Line 648:
Method-calling happens in the {% for %} loop: poll.choice_set.all is interpreted as the Python code poll.choice_set.all(), which returns a sequence of Choice objects and is suitable for use in the {% for %} tag.
Method-calling happens in the {% for %} loop: poll.choice_set.all is interpreted as the Python code poll.choice_set.all(), which returns a sequence of Choice objects and is suitable for use in the {% for %} tag.


Load the new detail page in your browser: http://127.0.0.1:8000/polls/1/
Load the new detail page in your browser: http://127.0.0.1:8000/polls/1/ The poll choices now appear.


=== Adding some style ===
=== Adding some style ===