def custom_not_found_page(request): return HttpResponseNotFound( render_to_string('404.html', request=request))