minor fix in handler500
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 18 May 2010 15:41:29 +0000 (17:41 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 18 May 2010 15:41:29 +0000 (17:41 +0200)
wolnelektury/views.py

index d3a8192..be1ec99 100644 (file)
@@ -1,9 +1,8 @@
 # -*- coding: utf-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):
 
 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))