Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by evileg.com #
 
PREVIOUS NEXT
Tagged: #django #making #custom #page
ADD COMMENT
Topic
Name
5+7 =