Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Commit

Permalink
User RequestContext on the 500 page so that cross-site links and the …
Browse files Browse the repository at this point in the history
…search box work.
  • Loading branch information
apendleton committed Jan 18, 2012
1 parent 36b4fc9 commit 7e658f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views.py
Expand Up @@ -51,4 +51,4 @@ def page_not_found(request, template_name='404.html'):


def server_error(request, template_name='500.html'): def server_error(request, template_name='500.html'):
t = loader.get_template(template_name) t = loader.get_template(template_name)
return http.HttpResponseServerError(t.render(Context({'search_form': SearchForm()}))) return http.HttpResponseServerError(t.render(RequestContext(request, {})))

0 comments on commit 7e658f9

Please sign in to comment.