From 3c05ab295df0b89192182c5c5309aaaff5cb4bb0 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 13 Jan 2020 22:04:35 +0000 Subject: [PATCH] [3.0.x] Added note about incomplete HTML in tutorial 3. Backport of 26be53dd89cef46746b4a67cbc0bb29665e999a6 from master --- docs/intro/tutorial03.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 23282c4f6d..47879fda65 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -214,6 +214,13 @@ Put the following code in that template:

No polls are available.

{% endif %} +.. note:: + + To make the tutorial shorter, all template examples use incomplete HTML. In + your own projects you should use `complete HTML documents`__. + +__ https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started#Anatomy_of_an_HTML_document + Now let's update our ``index`` view in ``polls/views.py`` to use the template: .. code-block:: python