2👍
You can set up your urlpatterns
like this:
urlpatterns = patterns('',
url(r'^confirm/(?P<itemnum>\d+)/$', 'yourapp.views.confirm', name='confirm-page'),
url(r'^deny/(?P<itemnum>\d+)/$', 'yourapp.views.deny', name='deny-page'),
)
So if user visits http://yourdomain.com/confirm/3/
then it would go to confirm
view with itemnum
= 3. Similarly if user visits http://yourdomain.com/deny/5/
it would lead to view deny
with itemnum
= 5
Source:stackexchange.com