def csrf_exempt(view_func):
 def wrapped_view(*args, **kwargs):
  return view_func(*args, **kwargs)
 wrapped_view.csrf_exempt = True
 return wraps(view_func)(wrapped_view)

def csrf_exempt ( view_func ) : def wrapped_view ( * args , ** kwargs ) : return view_func ( * args , ** kwargs ) wrapped_view . csrf_exempt = True return wraps ( view_func ) ( wrapped_view )
marks a view function as being exempt from the csrf checks and post processing .