Newbie form question

2012-07-01 Thread Russ Abbott
As a Django newbie I apologize if this is a trivial question. I'd like to use a form field as an element in a generated page but not as part of a form. In particular, I'm generating a table, some of whose elements are text and others of which I want to be drop-down lists. I thought I might be

Conditionals in Templates

2012-07-03 Thread Russ Abbott
I'm generating a table. I want the cells to be different depending on the type of the content. How do I test for the type of the content? I'd like to do something like this. {% for row in rows %} {% for cell in row %}

Re: Conditionals in Templates

2012-07-03 Thread Russ Abbott
Is that considered decent Django? On Tuesday, July 3, 2012 12:50:15 PM UTC-7, Russ Abbott wrote: > > I'm generating a table. I want the cells to be different depending on the > type of the content. How do I test for the type of the content? I'd like to