Hi i have an appengine application with the following db.Model:
class Cinema(db.Model):
name = db.StringProperty()
address = db.StringProperty()
distance = db.IntegerProperty()
user = db.ReferenceProperty(RunningUser)
When I fill my template everythings works fine:
{% for cinema in cinemas %}
<tr>
<td><img src="/images/cinema.png"></td>
<td>
<a href="...">
<h2>{{cinema.name}}</h2>
</a>
{{cinema.address}}
</td>
<td>
{% if cinema.distance > 10000 %}
<p>red</p>
{% endif %}
</td>
</tr>
{% endfor %}
Except the if statement. Python raises a TemplateSyntaxError: 'if' statement improperly formatted exception
. According to Django it should be fine. So what is wrong with these three lines?
{% if cinema.distance > 10000 %}
<p>red</p>
{% endif %}