mirror of https://github.com/django/django.git
Correcting some awkward wording/spelling in docs/request_response.txt while I'm in there
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7fbe014197
commit
b063bbc838
|
@ -557,11 +557,11 @@ Three things to note about 404 views:
|
||||||
|
|
||||||
* If you don't define your own 404 view -- and simply use the
|
* If you don't define your own 404 view -- and simply use the
|
||||||
default, which is recommended -- you still have one obligation:
|
default, which is recommended -- you still have one obligation:
|
||||||
To create a ``404.html`` template in the root of your template
|
you must create a ``404.html`` template in the root of your
|
||||||
directory. The default 404 view will use that template for all
|
template directory. The default 404 view will use that template
|
||||||
404 errors. The default 404 view will pass one variable to the
|
for all 404 errors. The default 404 view will pass one variable
|
||||||
template: ``request_path``, which is the URL which resulted in
|
to the template: ``request_path``, which is the URL which
|
||||||
the 404.
|
resulted in the 404.
|
||||||
|
|
||||||
* If ``DEBUG`` is set to ``True`` (in your settings module) then your 404
|
* If ``DEBUG`` is set to ``True`` (in your settings module) then your 404
|
||||||
view will never be used, and the traceback will be displayed instead.
|
view will never be used, and the traceback will be displayed instead.
|
||||||
|
|
Loading…
Reference in New Issue