Hi,
On the homepage of my website, I have three columns of articles from
users. I can't quite figure out how to make those three columns
without violating DRY. Now, I have a dictionary of lists, with each
list being the list of articles for one column. I then loop through
the lists. Example:
<div id="column_left">
{% for article in articles.left %}
{{article}}
{% endfor %}
</div>
<div id="column_right">
{% for article in articles.right %}
{{article}}
{% endfor %}
</div>
<div id="article_center">
{% for article in articles.center %}
{{article}}
{% endfor %}
</div>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---