Hi

url('^paperforms/$',
'view.methods',                         name='paperforms'),
url('^paperforms/(\w+)/$',
'view.methods',                         name='paperforms_with_arguments'),

It will work if you make your urls like this

On Fri, Sep 21, 2012 at 7:57 PM, Brian Patterson <bfpatter...@gmail.com>wrote:

> Hi Everyone,
> I'm very new to Django and just trying to explore the basics.  I'm having
> a problem with the url pattern matching.  If i go to site:
> http://mysite:8000/paperforms/
>
> I get the following error:
>
> Using the URLconf defined in mysite.urls, Django tried these URL
> patterns, in this order:
>
>    1. ^admin/
>    2. ^paperforms/ ^paperforms/$
>    3. ^paperforms/ ^paperforms/(?P<checkrequest_id>\d+)/$
>    4. ^paperforms/ ^paperforms/(?P<checkrequest_id>\d+)/results/$
>    5. ^paperforms/ ^paperforms/(?P<checkrequest_id>\d+)/vote/$
>    6. ^paperforms/ ^admin/
>
> The current URL, paperforms/, didn't match any of these.
>
> Shouldn't it find a match on line # 2.
>
> thanks for your help.
>
> --
> 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/-/J4trVX-oH0AJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Thanks & Regards
Stephen S



Website: www.f2finterview.com
Blog:      blog.f2finterview.com
Tutorial:  tutorial.f2finterview.com
Group:    www.charvigroups.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to