On Friday 11 May 2007 06:18 pm, orestis wrote:
> Put in a simple, hard coded python list and use random on this ?

Straight-up random will create dupes. 

My current thinking is to have python code creeate a list of 3 from 7 
sidebar features and in the template have INCLUDEDs surrounded by 
IFs.  So the templates will have 7 includes, but only 3 will trigger.  
It also keeps each feature in its own template file.

> You can put callables in the list that return the right info, so
> you can automate the stuff...

The "right info" is html, which I think belongs in templates.

Mordy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to