Re: Limitation for Named Urls for reverse url resolve.

2013-07-12 Thread Ramiro Morales
On Fri, Jul 12, 2013 at 1:27 PM, Sergio Pulgarín wrote: > > In Django 1.5.1 I have a named url like this: > > url(r'confirm/', 'confirm_user', name='auth-confirm-user'), > > which gave me this error when I tried to using reverse, from > django.core.urlresolvers, on it: > > NoReverseMatch at /auth/

Re: Limitation for Named Urls for reverse url resolve.

2013-07-12 Thread Jonathan Baker
I'm not aware of any rules against using '-' in your urlpatterns, so I think something else is amiss here. Your request could be passing by the r'confirm/' pattern because it isn't closed off with a '$'. It's hard to say without seeing the rest of your urlpatterns, but try this: url(r'confirm/$',

Limitation for Named Urls for reverse url resolve.

2013-07-12 Thread Sergio Pulgarín
In Django 1.5.1 I have a named url like this: url(r'confirm/', 'confirm_user', name='auth-confirm-user'), which gave me this error when I tried to using reverse, from django.core.urlresolvers, on it: NoReverseMatch at /auth/signup/ Reverse for 'auth-confirm-user' with arguments '()' and keyw