code: def logout(request, next_page=None):
      
  
      auth.logout(request)
  
      if not next_page:
          next_page = _redirect_url(request)
  
      if settings.CAS_LOGOUT_COMPLETELY:
          return HttpResponseRedirect(_logout_url(request, next_page))
      else:
          return HttpResponseRedirect(next_page)
docs: Redirects to CAS logout page
  
      :param: request RequestObj
      :param: next_page Page to redirect to