def direct_to_template(request, template, extra_context=None, **kwargs):
    context = extra_context or {}
    context["params"] = kwargs
    for (key, value) in context.items():
        if callable(value):
            context[key] = value()
    return TemplateResponse(request, template, context)
Given the value of a 'Content-Type' header, return the appropriate
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/core/views.py/direct_to_template--crossover with--dataset/ETHPy150Open core-api/python-client/coreapi/codecs/__init__.py/negotiate_decoder