def logout_with_message(request, msg, redirect=True):
 logout(request)
 if redirect:
  response = http.HttpResponseRedirect(('%s?next=%s' % (settings.LOGOUT_URL, request.path)))
 else:
  response = http.HttpResponseRedirect(settings.LOGOUT_URL)
 add_logout_reason(request, response, msg)
 return response

def logout_with_message ( request , msg , redirect = True ) : logout ( request ) if redirect : response = http . HttpResponseRedirect ( ( '%s?next=%s' % ( settings . LOGOUT_URL , request . path ) ) ) else : response = http . HttpResponseRedirect ( settings . LOGOUT_URL ) add_logout_reason ( request , response , msg ) return response
send httpresponseredirect to logout_url .