Hi there; On Sun, Feb 15, 2009 at 8:37 AM, guoqiang qian <[email protected]> wrote:
> Hi,everybody. > > I think custom 500 page,but i discover django.views.defaults.server_error > don't pass Context,becuse it is empty Context. > > Why do not add the media_url variable to > django.views.defaults.server_error. > > -- > 一起分享生活和知识。 > http://www.lifefix.cn > The idea is that if there is a server error, it might have come from a context processor. If the context processors were then used to populate the media_url, it might cause the same error and therefore might not serve anything. The 500 error view needs to be as simple as possible to avoid another error while serving the 500 page. FYI this might not be the best forum if you want to continue this discussion. Django-users would be a better place to continue. I hope that makes a little sense, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
