Re: Official Django tutorial 3: Reverse for 'detail' with arguments '('',)' and keyword arguments '{}' not found.

2013-10-12 Thread dvghana
thanks Xavier, the problem was that I mistyped poll.id as poll_id and now it works fine. Thanks again for your input. Regards, Max On Saturday, October 12, 2013 11:30:53 AM UTC-7, Xavier Ordoquy wrote: > > Hi, > > It looks like you are missing the poll in your context. > {% url 'detail' poll.id

Re: Official Django tutorial 3: Reverse for 'detail' with arguments '('',)' and keyword arguments '{}' not found.

2013-10-12 Thread Xavier Ordoquy
Hi, It looks like you are missing the poll in your context. {% url 'detail' poll.id %} will try to match an url named detail with the argument poll.id However Django says it can't find a reverse for 'detail' with arguments ('',) which means that you don't have a poll in your context (or the poll

Official Django tutorial 3: Reverse for 'detail' with arguments '('',)' and keyword arguments '{}' not found.

2013-10-12 Thread dvghana
Hi everyone, I'm following the official django tutorials to learn Django by building the polls app... Everything seemed great until chapter 3. I had this link as part of my index template, which was working fine: {{ poll.question }} however, this is hardcoded and the tutorial suggested a bette