Django Book 翻译
菜单>:
TOC
返回
原文:
Similarly, Django executes special-case behavior in the case of runtime errors in view code. If a view results in an exception, Django will, by default, call the view ``django.views.defaults.server_error`` , which loads and renders the template ``500.html`` .
翻译:
同样地,若是在试图代码中出现了运行时错误,Django会进行特殊情况处理。如果视图引发了一个异常,Django会默认访问视图 ``django.views.defaults.server_error`` ,加载并显示模板 ``500.html`` 。
备注:
译者: