Added note about incomplete HTML in tutorial 3.

This commit is contained in:
Adam Johnson 2020-01-13 22:04:35 +00:00 committed by Mariusz Felisiak
parent 56071826bb
commit 26be53dd89
1 changed files with 7 additions and 0 deletions

View File

@ -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