Thank you Sencer.
Bruckner de Villiers
083 625 1086
From: on behalf of Sencer Hamarat
Reply to:
Date: Tuesday, 10 December 2019 at 13:51
To:
Subject: Re: Removing Hardcoded urls in Templates
Would you please replace url name with 'polls:detail', as described
Thank you Daniel.
Bruckner de Villiers
083 625 1086
From: on behalf of Daniel Hepper
Reply to:
Date: Tuesday, 10 December 2019 at 13:54
To:
Subject: Re: Removing Hardcoded urls in Templates
It should be {% url 'polls:detail' question.id %}
I think you mixed up
Your code:
“<*li*><*a* href="{% *url* 'detail' question.id %}">{{
question.question_text }}”
Try addinga polls:detail like this:
“<*li*><*a* href="{% *url* 'polls:detail' question.id %}">{{
question.question_text }}”
uto, 10. dec 2019. 11:58 Bruckner de Villiers
је написао/ла:
> Running Dja
It should be {% url 'polls:detail' question.id %}
I think you mixed up the steps "Removing hardcoded URLs in templates" and
"Namespacing URL names"
Hope that helps,
Daniel
On Tue, Dec 10, 2019 at 11:58 AM Bruckner de Villiers <
bruckner.devilli...@gmail.
Would you please replace url name with 'polls:detail', as described at
https://docs.djangoproject.com/en/3.0/topics/http/urls/#id5
Saygılarımla,
Sencer HAMARAT
On Tue, Dec 10, 2019 at 1:58 PM Bruckner de Villiers <
bruckner.devilli...@gmail.com> wrote:
> Running Django 3.0 & Python 3.7.3.
>
>
Running Django 3.0 & Python 3.7.3.
Issue with Tutorial Part 3:
I replaced “{{ question.question_text
}}” with
“{{ question.question_text
}}” and get the following error:
Reverse for 'detail' not found. 'detail' is not a valid view function or
pattern name.
{{ question.question_text
}}
index
6 matches
Mail list logo