Permalink
Browse files

User RequestContext on the 500 page so that cross-site links and the …

…search box work.
  • Loading branch information...
1 parent 36b4fc9 commit 7e658f9959bd512f52cac4bb490cdb5d941d7842 @apendleton apendleton committed Jan 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 views.py
View
@@ -51,4 +51,4 @@ def page_not_found(request, template_name='404.html'):
def server_error(request, template_name='500.html'):
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.