summaryrefslogtreecommitdiffabout
authorWojciech Polak <polak@gnu.org>2019-09-18 20:24:20 (GMT)
committer Wojciech Polak <polak@gnu.org>2019-09-18 20:24:20 (GMT)
commitaf816375c950404d8c36665f000d3875e883ed0a (patch) (side-by-side diff)
tree67f27d830fbe7bb4b9c198e67581c8d182b0fc32
parentc5f91b184ebbb54e717f73b7ec25b37b05f56bf0 (diff)
downloadglifestream-af816375c950404d8c36665f000d3875e883ed0a.tar.gz
glifestream-af816375c950404d8c36665f000d3875e883ed0a.tar.bz2
Fix Page Not Found
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--glifestream/stream/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/glifestream/stream/views.py b/glifestream/stream/views.py
index 51e5c30..aef16d8 100644
--- a/glifestream/stream/views.py
+++ b/glifestream/stream/views.py
@@ -474,15 +474,14 @@ def pshb_dispatcher(request, **args):
def page_not_found(request, **args):
- from django.template import RequestContext, loader
page = {
'robots': 'noindex',
'base_url': settings.BASE_URL,
'favicon': settings.FAVICON,
'theme': common.get_theme(request),
}
- t = loader.get_template('404.html')
- return HttpResponseNotFound(t.render(RequestContext(request, {'page': page})))
+ t = render_to_response('404.html', {'page': page})
+ return HttpResponseNotFound(t.content)
#
# XHR API

Return to:

Send suggestions and report system problems to the System administrator.