On Thu, Sep 1, 2011 at 9:25 AM, Reinout van Rees <reinout@vanrees.org> wrote:
On 01-09-11 15:04, Yves S. Garret wrote:
Using the URLconf defined in |mysite.urls|, Django tried these URL1. ^polls/ ^polls/$
patterns, in this order:
2. ^polls/ ^polls/(?P<poll_id>\d+)/$
3. ^polls/ ^polls/(?P<poll_id>\d+)/results/$
4. ^polls/ ^polls/(?P<poll_id>\d+)/vote/$
5. ^polls/ ^admin/
6. ^admin/
The current URL, |polls/1/|, didn't match any of these.
Such a "^polls/ ^polls/$" regex is incorrect. What's the extra
"^polls/ " doing in front of the actual regex? That's the cause of your error, I think.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
reinout@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment