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:28:31 +0100 |
| commit | 26be53dd89cef46746b4a67cbc0bb29665e999a6 (patch) | |
| tree | 6093173a4513e60d35aeb3a8f540afe12caf0f04 /docs/intro | |
| parent | 56071826bbb741b6ca04aa517a26acd335fc24d7 (diff) | |
Added note about incomplete HTML in tutorial 3.
Diffstat (limited to 'docs/intro')
| -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 73cc778106..b232e5a24b 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -207,6 +207,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 |
