def jinja_for_django(template_name, context=None, **kw):
 if (context is None):
  context = {}
 context_instance = kw.pop('context_instance')
 request = context_instance['request']
 for d in context_instance.dicts:
  context.update(d)
 return jingo.render(request, template_name, context, **kw)

def jinja_for_django ( template_name , context = None , ** kw ) : if ( context is None ) : context = { } context_instance = kw . pop ( 'context_instance' ) request = context_instance [ 'request' ] for d in context_instance . dicts : context . update ( d ) return jingo . render ( request , template_name , context , ** kw )
if you want to use some built in logic but need to override the templates to work with jinja .