Re: URL reverse failed for urlencoded string

2010-02-03 Thread akaariai
On Feb 2, 7:56 pm, timc3 wrote: > Well the space was still an issue it seems. > > I have the following urlconf: > > url(r'^group_view/(?P[-\w\s]+)/$', 'mysite.views.vs_group_view', > name="group_view"), > > Which matches the whitespace but my URL reverse match still breaks. > > Any ideas? You are

Re: URL reverse failed for urlencoded string

2010-02-03 Thread Daniel Roseman
On Feb 2, 5:56 pm, timc3 wrote: > Well the space was still an issue it seems. > > I have the following urlconf: > > url(r'^group_view/(?P[-\w\s]+)/$', 'mysite.views.vs_group_view', > name="group_view"), > > Which matches the whitespace but my URL reverse match still breaks. > > Any ideas? The {%

Re: URL reverse failed for urlencoded string

2010-02-03 Thread timc3
Then it doesn't match the plus sign. I guess I need to put something in my regex to match that as well? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this

Re: URL reverse failed for urlencoded string

2010-02-02 Thread Karen Tracey
On Tue, Feb 2, 2010 at 12:13 PM, timc3 wrote: > I am working with an external REST Provider whose GUIDs might have > spaces, plus signs and a few other characters in (I can't change > this). > > In my template I use the following, which normally works except when > their are encoded characters in

Re: URL reverse failed for urlencoded string

2010-02-02 Thread timc3
Well the space was still an issue it seems. I have the following urlconf: url(r'^group_view/(?P[-\w\s]+)/$', 'mysite.views.vs_group_view', name="group_view"), Which matches the whitespace but my URL reverse match still breaks. Any ideas? -- You received this message because you are subscribed

Re: URL reverse failed for urlencoded string

2010-02-02 Thread timc3
To answer my own question I think this has more to do with matching a URL that has a string in it to my urls.py. So this should really be about creating the correct entry in my urls to match spaces.. -- You received this message because you are subscribed to the Google Groups "Django users" gro

URL reverse failed for urlencoded string

2010-02-02 Thread timc3
I am working with an external REST Provider whose GUIDs might have spaces, plus signs and a few other characters in (I can't change this). In my template I use the following, which normally works except when their are encoded characters in the string: {% url group_view group.groupName|urlencode %