mirror of
https://github.com/skoobasteeve/django-movies.git
synced 2026-03-22 04:29:00 +00:00
working polls app with function-based non-generic views
This commit is contained in:
13
apps/polls/templates/polls/index.html
Normal file
13
apps/polls/templates/polls/index.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user