浏览代码

Documented arguments for custom 500 error view.

Dan Swain 5 年之前
父节点
当前提交
422b875c65
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/ref/urls.txt

+ 2 - 2
docs/ref/urls.txt

@@ -192,5 +192,5 @@ that should be called in case of server errors. Server errors happen when you
 have runtime errors in view code.
 
 By default, this is :func:`django.views.defaults.server_error`. If you
-implement a custom view, be sure it returns an
-:class:`~django.http.HttpResponseServerError`.
+implement a custom view, be sure it accepts a ``request`` argument and returns
+an :class:`~django.http.HttpResponseServerError`.