]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/generic/views.py
title fix for blog
[sommitrealweird.git] / sommitrealweird / generic / views.py
1 from settings import MEDIA_URL
2 from django.http import HttpResponseNotFound
3 from django.template import RequestContext, loader 
4
5
6 def render_404(request, template_name='404.html'):
7     t = loader.get_template(template_name)
8     return HttpResponseNotFound( \
9         t.render(RequestContext(request,
10             {
11                 'request_path': request.path,
12                 'media_url'   : MEDIA_URL,
13             }
14         )))