replace djangos direct_to_template with djangos render