Hi, after going through some basic tutorials on the app engine and the webapp framework, I'm attempting to display documents that are related to a project construct I've created (e.g {% ifequal project.key doc.parentproject %} ) I have created several documents that do indeed have a doc.parentproject identical to keys from the project, but somehow this for loop never runs. If I substitute project.key for an actual project key value, then it returns true for those specific kets. Is there some basic templating thing I'm missing here? I haven't been able to find any answers on google or the django site (webapp uses the django templating engine). Any help would be appreciated.
Sorry if this is basic newb material...
{% for project in projects %}
<blockquote>
<div style="border:1px solid #999; padding:20px;">
<h3>{{ project.projectname|escape }} </h3>
<h5>{{ project.key }}</h5>
<table border="1" cellpadding="5" cellspacing="0" width="600">
<tr>
<td>Doc Feed Name</td>
<td>Feed author</td>
<td>Spreadsheet URL</td>
<td>Parent Project Key</td>
<td>Created on</td>
<td> </td>
</tr>
{% for doc in docs %}
{% ifequal project.key doc.parentproject %}
<tr>
<td>doc name:{{ doc.name|escape }}</td>
<td>{{ doc.author }}</td>
<td>{{ doc.link }}</td>
<td>{{ doc.parentproject }}</td>
<td>{{ doc.date }}</td>
<td>Delete</td>
</tr>
{% endifequal %}
{% endfor %}
</table>
{% endfor %}