Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

only include top ten items django for loop

<ul>
    <h3>Positive Tweets :</h3>
    {% for tweet in positiveTweet|slice:":10" %}
      <li>{{ tweet.0 }}</li>
    {% endfor %}
</ul>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #include #top #ten #items #django #loop
ADD COMMENT
Topic
Name
2+7 =