まず第一に、django、python、htmlの跛行について失礼します。
ウィジェットをhtmlに追加し、データベースからアイテムを入力したいと思います。次のことを試しましたが、機能しません。明らかな('ALL'アイテム)のみが表示されます。
HTML:
<select name=\"accountName\" >
<option value=\"ALL\">ALL</option>
{% for item in select_items %}
<option value=\"'+item.accountName+'\">'+item.accountName+'</option>
{% endfor %}
</select>
Python:
class StartPage(webapp.RequestHandler):
def get(self):
select_items = db.GqlQuery( "SELECT * FROM Registration" )
self.response.out.write(template.render("tst.html", {'select_items': select_items}))
DBには空ではなく、ものが含まれていることに注意してください。ありがとう