From: Radek Czajka Date: Tue, 18 May 2010 15:41:29 +0000 (+0200) Subject: minor fix in handler500 X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/4fd499aea0aeb6416ceb514f1d6de04d1903f3e2?ds=sidebyside;hp=-c minor fix in handler500 --- 4fd499aea0aeb6416ceb514f1d6de04d1903f3e2 diff --git a/wolnelektury/views.py b/wolnelektury/views.py index d3a8192e8..be1ec9987 100644 --- a/wolnelektury/views.py +++ b/wolnelektury/views.py @@ -1,9 +1,8 @@ # -*- coding: utf-8 -*- -from django import http -from django.template import RequestContext, loader +from django.shortcuts import render_to_response +from django.template import RequestContext def server_error(request): - t = loader.get_template('500.html') - return http.HttpResponseServerError(t.render(RequestContext(request))) + return render_to_response('500.html', RequestContext(request))