Answers for "django making a custom 403 page"

1

django making a custom 403 page

def csrf_failure(request, reason=""):    
  context = RequestContext(request)    
  response = render_to_response('error403.html', context)    
  response.status_code = 403    
  return response
Posted by: Guest on May-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language