1 from settings import MEDIA_URL
2 from django.http import HttpResponseNotFound
3 from django.template import RequestContext, loader
6 def render_404(request, template_name='404.html'):
7 t = loader.get_template(template_name)
8 return HttpResponseNotFound( \
9 t.render(RequestContext(request,
11 'request_path': request.path,
12 'media_url' : MEDIA_URL,