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
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
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
3 matches
Mail list logo