def redirect_to(request, url, **kwargs):
    if url is not None:
        return HttpResponsePermanentRedirect(url % kwargs)
    else:
        return HttpResponseGone()
Redirect to a given URL.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/views/generic/simple.py/redirect_to