def staff_only_view(request):
 if request.user.is_staff:
  return HttpResponse('')
 else:
  raise SuspiciousOperation()

def staff_only_view ( request ) : if request . user . is_staff : return HttpResponse ( '' ) else : raise SuspiciousOperation ( )
a view that can only be visited by staff .