Files @ ce77ac6b5c69
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/views.py - annotation

Christopher Neugebauer
Fixes #67
1
2
3
4
5
6
7
8
9
from django.http import HttpResponseServerError
from django.template import RequestContext
from django.template import Template
from django.template.loader import get_template
from django.views import defaults

def server_error(request, template_name=defaults.ERROR_500_TEMPLATE_NAME):
    t = Template("{%% include '%s' %%}" % template_name)
    return HttpResponseServerError(t.render(RequestContext(request)))