django making a custom 403 page

Solutions on MaxInterview for django making a custom 403 page by the best coders in the world

showing results for - "django making a custom 403 page"
Benjamin
05 Jul 2017
1def csrf_failure(request, reason=""):    
2  context = RequestContext(request)    
3  response = render_to_response('error403.html', context)    
4  response.status_code = 403    
5  return response