URL reversing not working in django when using arguments -


i'm stuck one.

i have following in urlpatterns:

url(r'^user/$', userview.as_view(), name='farmauth-user'), url(r'^user/(?p<id>\d+)/confirm/(?p<token>\w+)/$', userconfirmationview.as_view(), name='farmauth-confirm'), 

i have other urls too. in html get

reverse 'farmauth-confirm' arguments '([u'28'], [u'n48dssasbkhabwxzz6xv'])' , keyword arguments '{}' not found. 

when this:

{% url 'farmauth-confirm' id token %} 

i tried using positional arguments. in case wondering, urls visible i'm attempting because works:

{% url 'farmauth-user' %} 

i tried other urls , without arguments. never works when using arguments. doing wrong??

please advise.

just try order:
url(r'^user/(?p\d+)/confirm/(?p\w+)/$', userconfirmationview.as_view(), name='farmauth-confirm'),
url(r'^user/$', userview.as_view(), name='farmauth-user'),


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -