#NEWLINE# @ requires_csrf_token #NEWLINE# def page_not_found( request , template_name = 'errors/404.html' ) : #NEWLINE# #INDENT# "\n    Mimics Django's 404 handler but with a different template path.\n    " #NEWLINE# context = RequestContext ( t , { #NEWLINE# #INDENT# 'STATIC_URL' : settings . STATIC_URL , #NEWLINE# 'request_path' : request . path , #NEWLINE# #UNINDENT# } ) #NEWLINE# t = get_template ( template_name ) #NEWLINE# return HttpResponseNotFound ( t . render ( context ) )