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

imported>Ltwhite
imported>Ltwhite
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.
 
Load the new detail page in your browser: http://127.0.0.1:8000/polls/1/ The poll choices now appear.
 
=== Adding some style ===
Anonymous user