Re: help to finish my 1st Django app.

2011-03-15 Thread Igor Ischenko
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

Re: help to finish my 1st Django app.

2011-03-14 Thread 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 way down. They add the "latest_poll_list" object to the Context that gets passed to your template.

Re: help to finish my 1st Django app.

2011-03-14 Thread Rogelio Gonzalez
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

Re: help to finish my 1st Django app.

2011-03-14 Thread Igor Ischenko
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"

help to finish my 1st Django app.

2011-03-14 Thread 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 message, because it is plain text. I've created 3 polls with