Re: Can't seem to get "votes" to work right

2013-08-16 Thread bud
Ah, its always the details. Gotta pay attention to those. Thanks, it works now! -- 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...@googleg

Re: Can't seem to get "votes" to work right

2013-08-16 Thread Daniel Roseman
On Friday, 16 August 2013 21:05:46 UTC+1, bud wrote: > > but now an error page came up when I tried to vote for one of the polls: > > Environment: > > > Request Method: POST > Request URL: http://127.0.0.1:8000/polls/1/vote/ > > Django Version: 1.5.1 > Python Version: 2.7.3 > Installed Application

Re: Can't seem to get "votes" to work right

2013-08-16 Thread bud
I've made some changes to * detail.html* > {{ poll.question }} > > {% if error_message %}{{ error_message }}{% endif > %} > > {% csrf_token %} > {% for choice in poll.choice_set.all %} > > {{ choice.choice_text > }} > {% endfor %} > > > but now an error page came up when I tried

Re: Can't seem to get "votes" to work right

2013-08-16 Thread Daniel Roseman
On Friday, 16 August 2013 16:40:24 UTC+1, bud wrote: > Hi, > > I've finished the Django tutorial but I just can't seem to get my "votes" > function to work right. I would start the server, go to polls, and every > time I try to vote for something, the KeyError message comes up i.e. "You > didn'

Can't seem to get "votes" to work right

2013-08-16 Thread bud
Hi, I've finished the Django tutorial but I just can't seem to get my "votes" function to work right. I would start the server, go to polls, and every time I try to vote for something, the KeyError message comes up i.e. "You didn't select a choice." when I did. Maybe if there was some way to de