Hi Kareem,

In your template you have your code as: 

{% for question in latest_question %}

According to your context dictionary in your index view, the above template 
code should be:

{% for question in latest_question_list %}

And then you should go to the url 127.0.0.1:8000/polls/

Regards.


On Monday, August 14, 2017 at 11:05:09 PM UTC+2, Kareem Hart wrote:
>
> *I've found my mistake with the index.html file.*
>>
>
>   {% for question in latest_question %}
>         <li><a* herf*="/polls/{{question.id
> }}/">{{question.question_text}}</a></li> 
>
> herf is suppose to be href.
>
> But  http://127.0.0.1:8000/  still says page not found.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/033897b0-3515-419e-acb5-c1cedfef2bd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to