Added help for common 404 error in tutorial 1.

This commit is contained in:
Daniel Roseman 2018-05-19 14:17:15 +01:00 committed by Tim Graham
parent 392963e8e4
commit 40ff93310f
1 changed files with 5 additions and 0 deletions

View File

@ -324,6 +324,11 @@ Go to http://localhost:8000/polls/ in your browser, and you should see the
text "*Hello, world. You're at the polls index.*", which you defined in the
``index`` view.
.. admonition:: Page not found?
If you get an error page here, check that you're going to
http://localhost:8000/polls/ and not http://localhost:8000/.
The :func:`~django.urls.path` function is passed four arguments, two required:
``route`` and ``view``, and two optional: ``kwargs``, and ``name``.
At this point, it's worth reviewing what these arguments are for.