From 701d9d9691d3965bf5e2b406a573faba5ff29c3e Mon Sep 17 00:00:00 2001 From: Basyrov Rustam Date: Wed, 4 Jun 2025 15:17:03 +0300 Subject: [PATCH] add templates for views --- polls/templates/polls/detail.html | 6 ++++++ polls/templates/polls/index.html | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 polls/templates/polls/detail.html create mode 100644 polls/templates/polls/index.html diff --git a/polls/templates/polls/detail.html b/polls/templates/polls/detail.html new file mode 100644 index 0000000..975db2a --- /dev/null +++ b/polls/templates/polls/detail.html @@ -0,0 +1,6 @@ +

{{ question.question_text }}

+ diff --git a/polls/templates/polls/index.html b/polls/templates/polls/index.html new file mode 100644 index 0000000..5109aef --- /dev/null +++ b/polls/templates/polls/index.html @@ -0,0 +1,9 @@ +{% if latest_question_list %} + +{% else %} +

No polls are available.

+{% endif %}