#NEWLINE# def logout_with_message( request , msg ) : #NEWLINE# #INDENT# 'Send HttpResponseRedirect to LOGOUT_URL.\n\n    `msg` is a message displayed on the login page after the logout, to explain\n    the logout reason.\n    ' #NEWLINE# logout ( request ) #NEWLINE# response = http . HttpResponseRedirect ( ( '%s?next=%s' % ( settings . LOGOUT_URL , request . path ) ) ) #NEWLINE# add_logout_reason ( request , msg , msg ) #NEWLINE# return response