remove unused keyword argument to render_template.  It clouds the issue.