"in"문을 사용하여 확인하는 방법은 목록의 항목인지 확인하십시오. 내가 사용하는 경우 : 라인확인할 GAE 템플릿 코드가 목록의 항목입니다
TemplateSyntaxError: 'if' statement improperly formatted
{% if picture in article.pictures %}
도움이 함께 실패
{% for picture in pictures %}
{% if picture in article.pictures %}
<input type="checkbox" checked="true" name="picture" value="{{ picture.key }}" />
{% else %}
<input type="checkbox" name="picture" value="{{ picture.key }}" />
{% endif %}
<img src='/img?img_id={{ picture.key }}'></img> <br />
{% endfor %}
?
Django 템플릿이 Django 1.2 (http://code.djangoproject.com/ticket/8087)에있는 것처럼 보입니다. 그래도 그게 도움이 될지 모르겠다. –