def rewrite_url(request, path):
    return HttpResponseRedirect(('/exchange%s?%s' % (path, request.META['QUERY_STRING'])))
def rewrite_url(request, path):
    return HttpResponseRedirect(('/exchange%s?%s' % (path, request.META['QUERY_STRING'])))