def direct_to_template(request, template, extra_context=None, mimetype=None,
        status=None, **kwargs):
    if extra_context is None:
        extra_context = {}

    dictionary = {'params': kwargs}
    for key, value in extra_context.items():
        if callable(value):
            dictionary[key] = value()
        else:
            dictionary[key] = value

    c = RequestContext(request, dictionary)
    t = loader.get_template(template)

    return HttpResponse(t.render(c), status=status,
            mimetype=mimetype)
Return a post-order iterator for the tree.
dataset/ETHPy150Open bueda/django-comrade/comrade/views/simple.py/direct_to_template--crossover with--dataset/ETHPy150Open ctxis/canape/CANAPE.Scripting/Lib/lib2to3/pytree.py/Node.post_order