diff options
| author | Adam Johnson <me@adamj.eu> | 2020-01-13 22:04:35 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-17 15:48:42 +0100 |
| commit | 3c05ab295df0b89192182c5c5309aaaff5cb4bb0 (patch) | |
| tree | a3fc7f9a1dc62117743ce65e95af285182c32a05 | |
| parent | f0e1a69c99c43a812c647811265b2345dda4ba04 (diff) | |
[3.0.x] Added note about incomplete HTML in tutorial 3.
Backport of 26be53dd89cef46746b4a67cbc0bb29665e999a6 from master
| -rw-r--r-- | docs/intro/tutorial03.txt | 7 |
1 files changed, 7 insertions, 0 deletions
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: <p>No polls are available.</p> {% 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 |
