Reverse for 'mysite.polls.views.results' with arguments '(1L,)' and keyword arguments '{}' not found

413 views
Skip to first unread message

香柱元

unread,
Nov 8, 2011, 4:13:28 AM11/8/11
to django...@googlegroups.com
I just run into the tutorial part 4,and at the last of the psot. I got a error message:

Reverse for 'mysite.polls.views.results' with arguments '(1L,)' and keyword arguments '{}' not found

who can tell me what's up?
thanks!

Andre Terra

unread,
Nov 8, 2011, 7:24:19 AM11/8/11
to django...@googlegroups.com
You are passing one positional argument to your view with the value of 1L (the L is for long integers), and an empty dict for the keyword arguments.

Check your mysite.polls.views.results URL mapping in urls.py and see what it's expecting. My bet is that your missing a \d wildcard in your regex.

If you can't figure it out yourself, post your urls.py and FULL traceback here. Good luck!


Cheers,
AT


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/q5stlAXxAVIJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages