def response_redirect(redirect_url, script_redirect=False):
 if script_redirect:
  return ScriptRedirect(redirect_url)
 return HttpResponseRedirect(redirect_url)

def response_redirect ( redirect_url , script_redirect = False ) : if script_redirect : return ScriptRedirect ( redirect_url ) return HttpResponseRedirect ( redirect_url )
abstract away canvas redirects .