views:

212

answers:

1

Django's views documentation states that "the default 500 view passes no variables to this template and is rendered with an empty Context to lessen the chance of additional errors," but is it okay to use the {% extends %} tag to re-use a base view in the 500 Server Error page (500.html)?

+1  A: 

Yes, we have a very basic template that we extend our 404 and 500 templates from. As long as your base template doesn't rely on a custom context, you should be good.

Joe Holloway