============================== Add the Result and Final Pages ============================== .. sidebar:: Special Characters There are two special characters in *result.html*, one shows a large tick the other a large cross, these should render on your web browser. Now create the answer page (*result.html*). Build using *base.html*, tell the user where they are, then according to whether they are right or wrong, display the result - all this is simpler than the question page(*quiz.html*):: {% extends "base.html" %} {% block content %}
Correct Answer: {{ correct_answer }}
{% endif %} {% endblock %} .. sidebar:: Links to *bird.py* All links given in the templates are from one html page to another, in reality the links are re-directed to *bird.py* for control before going onward. If used as it stands the application only has one link to the home page (*index.html*), so the user is trapped at the start. We could add extra links to *base.html* for the other pages, but this would confuse the user as to which to use, better to guide the user by restricting their choice and change this at every page. The links required are as follows .. code-block:: index --> quiz quiz --> result (this will come from submit button) result --> quiz quiz --> final (when there are no more questions) final --> index quiz, result and final --> index (reset button) For the moment keep the index link on *base.html* but change its position until after the *block content*, when the extra links are made within the *block content* they will precede the index link, *base.html* becomes:: .... {% block content %}{% endblock %}