working polls app with function-based non-generic views

This commit is contained in:
2025-12-21 18:54:55 -05:00
parent 384b2e7303
commit 72d10ab9d2
17 changed files with 194 additions and 55 deletions

View File

@@ -0,0 +1,13 @@
{% if latest_question_list %}
<ul>
{% for question in latest_question_list %}
<li>
<a href="{% url 'polls:detail' question.id %}"
>{{ question.question_text }}</a
>
</li>
{% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}