template.html
views.py
 

<!DOCTYPE html>
<html>
<body>

<ul>
{% for x in fruits %}
  <li style='
      color:{% cycle 'red' 'green' 'blue' 'pink' as mycolor %};
      background:{% cycle 'grey' 'beige' 'red' 'purple' as mybg %};
    '>
    {{ x }}
  </li>
  {% if x == "Banana" %}
    {% resetcycle mybg %}
  {% endif %}
{% endfor %}
</ul>

<p>Check out views.py to see what the fruits variable looks like.</p>

</body>
</html>        
127.0.0.1:8000/members/testing