(request, template_name='404.html', exception=None)
return HttpResponseNotFound(t.render(
        context={
            'MEDIA_URL': settings.MEDIA_URL,
            'STATIC_URL': settings.STATIC_URL,
        },
        request=request,
    ))
404 error handler.
404 error handler.
404 error handler .
def not_found(request, template_name='404.html', exception=None):
    """
    404 error handler.
    """
    t = loader.get_template(template_name)
    return HttpResponseNotFound(t.render(
        context={
            'MEDIA_URL': settings.MEDIA_URL,
            'STATIC_URL': settings.STATIC_URL,
        },
        request=request,
    ))
def not_found ( request , template_name = '404.html' , exception = None ) : t = loader . get_template ( template_name ) return HttpResponseNotFound ( t . render ( context = { 'MEDIA_URL' : settings . MEDIA_URL , 'STATIC_URL' : settings . STATIC_URL , } , request = request , ) )