In order to be able to use the == syntax in the {% if %} statement, you need to use Django 1.2 or above.
Django 1.2 comes with your GAE SDK, but 0.96 is loaded by default.
You can use version 1.2 of django , by declaring the version of the third-party library you want to use with the use_library() function provided by the google.appengine.dist package. Just put this code at the very top of your python file (at least before importing anything from django:
from google.appengine.dist import use_library
use_library('django', '1.2')
This way, your template should render nicely.