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/$', 'confirm_user', name='auth-confirm-user'), JDB On Fri, Jul 12, 2013 at 10:27 AM, Sergio PulgarÃn <[email protected] > 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/signup/ > > Reverse for 'auth-confirm-user' with arguments '()' and keyword arguments > '{}' not found. > > > When I changed it to: name='auth-confirm', reverse worked. > > > Is this by design? I couldn't find any reference to this > on the documentation. > > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Jonathan D. Baker Developer http://jonathandbaker.com -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.
