Re: Named URL not picking up parameter value

2008-07-09 Thread Brandon Taylor
OMG. I definitely need more sleep! Many thanks, Brandon On Jul 9, 3:20 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > Brandon Taylor wrote: > >     url(r'^(?P[w-]+)/$', 'my_site.groups.views.show_group', > > That regex matches one or more w's and hyphens.  You surely wanted [-\w] > to match

Re: Named URL not picking up parameter value

2008-07-09 Thread Norman Harman
Brandon Taylor wrote: > url(r'^(?P[w-]+)/$', 'my_site.groups.views.show_group', That regex matches one or more w's and hyphens. You surely wanted [-\w] to match letters, numbers, underscores and hyphens. -- Norman J. Harman Jr. Senior Web Specialist, Austin American-Statesman

Named URL not picking up parameter value

2008-07-09 Thread Brandon Taylor
Hi everyone, According to: http://www.djangoproject.com/documentation/url_dispatch/ I'm supposed to be able to use {% url url-name parameter(s) %}, to de- couple models form URLs. Here's a snippet from my template: {% for group in groups %} {{ group.name }} {% endfor %} #in urls.py