From 4fd499aea0aeb6416ceb514f1d6de04d1903f3e2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 18 May 2010 17:41:29 +0200 Subject: [PATCH 1/1] minor fix in handler500 --- wolnelektury/views.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)) -- 2.20.1