Kaydet (Commit) 40ff9331 authored tarafından Daniel Roseman's avatar Daniel Roseman Kaydeden (comit) Tim Graham

Added help for common 404 error in tutorial 1.

üst 392963e8
...@@ -324,6 +324,11 @@ Go to http://localhost:8000/polls/ in your browser, and you should see the ...@@ -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 text "*Hello, world. You're at the polls index.*", which you defined in the
``index`` view. ``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: The :func:`~django.urls.path` function is passed four arguments, two required:
``route`` and ``view``, and two optional: ``kwargs``, and ``name``. ``route`` and ``view``, and two optional: ``kwargs``, and ``name``.
At this point, it's worth reviewing what these arguments are for. At this point, it's worth reviewing what these arguments are for.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment