I use BeautifulSoup to parse the page content into python objects and then itterate through those objects creating a ziped variable with 3 the content I needed for each event. My space_page view calls my model function and then renders it to the spage_page template.
Sep 13, 2009 · The loop counter defines the number of times that the loop is to be executed. In the following example, variable I is the loop counter, with an initial value of 1. The counter is incremented by 1 at the end of each pass.