def standalone(view_func):
 def inner(request, *args, **kwargs):
  response = view_func(request, *args, **kwargs)
  if isinstance(response, HttpResponse):
   response.standalone = True
  return response
 return wraps(view_func)(inner)

def standalone ( view_func ) : def inner ( request , * args , ** kwargs ) : response = view_func ( request , * args , ** kwargs ) if isinstance ( response , HttpResponse ) : response . standalone = True return response return wraps ( view_func ) ( inner )
marks the view method as standalone view; this means that httpresponse objects returned from applicationcontent are returned directly .