summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Roseman <daniel.roseman@digital.cabinet-office.gov.uk>2018-05-19 14:17:15 +0100
committerTim Graham <timograham@gmail.com>2018-05-21 13:14:19 -0400
commita53d6487b53d949108421a1aeb164f1c7132aa69 (patch)
tree29aba42746e185df58e7b919e5a6719ad971c4fb
parenta114906a1835492dcd81ac3c3a6fa92aba1e58be (diff)
[2.1.x] Added help for common 404 error in tutorial 1.
Backport of 40ff93310f03dc89a6281a846b1a1ec4cb672bd0 from master
-rw-r--r--docs/intro/tutorial01.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index 92e29ea93e..aca496580e 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -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.