def render(request, *args, **kwargs):
    httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None),
                           'status': kwargs.pop('status', None),
                           'content_type': kwargs.pop('content_type', None)
                           }

    if 'context_instance' in kwargs:
        context_instance = kwargs.pop('context_instance')
        if kwargs.get('current_app', None):
            raise ValueError('If you provide a context_instance you must '
                             'set its current_app before calling render()')
    else:
        current_app = kwargs.pop('current_app', None)
        context_instance = RequestContext(request, current_app=current_app)

    kwargs['context_instance'] = context_instance

    return HttpResponse(render_to_string(*args, **kwargs), **httpresponse_kwargs)
Partial object generator for the synchronization decorator.
dataset/ETHPy150Open KaySackey/Nemo/nemo/app/shortcuts.py/render--crossover with--dataset/ETHPy150Open openstack/rack/rack/openstack/common/lockutils.py/synchronized_with_prefix