if request.is_ajax():
    template = 'partial-results.html'
else:
    template = 'result-page.html'
return render_to_response(template, {'locs': locations}, context_instance=
    RequestContext(request))
how to render only part of html with data using django