Error 500 on template.render() with jinja2
- by Asperitas
I am working on playing with some Python to create a webapp. At first I put the HTML in a string, using %s to fill certain elements. That all worked perfectly. Now I want to put the HTML in a template, so I followed this tutorial.
My code looks like this (I deleted irrelevant code for this error):
import codecs
import cgi
import os
import jinja2
…