mirror of
https://github.com/django/django.git
synced 2025-07-21 01:59:26 +00:00
[3.0.x] Added note about incomplete HTML in tutorial 3.
Backport of 26be53dd89cef46746b4a67cbc0bb29665e999a6 from master
This commit is contained in:
parent
f0e1a69c99
commit
3c05ab295d
@ -214,6 +214,13 @@ Put the following code in that template:
|
|||||||
<p>No polls are available.</p>
|
<p>No polls are available.</p>
|
||||||
{% endif %}
|
{% 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:
|
Now let's update our ``index`` view in ``polls/views.py`` to use the template:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
Loading…
x
Reference in New Issue
Block a user