Monday, August 14, 2017

RE: Tutorial writing views help

And are you navigating to

http://127.0.0.1:8000/polls/

?  

 

I don't think you should have anything at

http://127.0.0.1:8000/  

or so it seems.

 

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Kareem Hart
Sent: Monday, August 14, 2017 4:05 PM
To: Django users
Subject: Re: Tutorial writing views help

 

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+unsubscribe@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/5403110a-751c-4fae-84d5-0aa0906e14d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment