@decorator.cache_never
def login_logout(request):
  request.user = None
  redirect_to = '/'
  flash = "You have signed out! You are no longer signed in to %s" % util.get_metadata('SITE_NAME')
  c = template.RequestContext(request, locals())
  t = loader.get_template('login/templates/logout.html')

  #response = http.HttpResponseRedirect(redirect_to)
  response = util.RedirectFlash(redirect_to, flash)
  response = user.clear_user_cookie(response)
  return response
dataset/ETHPy150Open CollabQ/CollabQ/login/views.py/login_logout/original