Or you can simply use object_list instead of latest_poll_list
2011/3/15 christian.posta
> Your template file checks to see whether a variable named
> "latest_poll_list" exists.
> I don't see anywhere in your views where you add this to your context.
> Look at part 3 of the tutorial about half wa
Your template file checks to see whether a variable named
"latest_poll_list" exists.
I don't see anywhere in your views where you add this to your context.
Look at part 3 of the tutorial about half way down. They add the
"latest_poll_list" object to the Context that gets passed to your
template. Tr
Hi Igor.
Thanks for your reply. My poll_list.html code is:
{% if latest_poll_list %}
{% for poll in latest_poll_list %}
{{ poll.question }}
{% endfor %}
{% else %}
No polls are available.
{% endif %}
What i'm doing wrong?..
2011/3/14 royy
> Hi.
>
> I've finished t
Hi
Show your template file
2011/3/14 royy
> Hi.
>
> I've finished the tutorial for the polls app.
>
> I tought everythin was OK till I load the server and type the addres:
> http://127.0.0.1:8000/polls/
>
> web browser shows me the message "No polls are available" isn't a web
> browser error me
Hi.
I've finished the tutorial for the polls app.
I tought everythin was OK till I load the server and type the addres:
http://127.0.0.1:8000/polls/
web browser shows me the message "No polls are available" isn't a web
browser error message, because it is plain text.
I've created 3 polls with 3
5 matches
Mail list logo