1👍
✅
The URL should look like this
url(r'^outgoing-recommendations/(?P<entry>\w+)/$',login_required(outgoing_messages), name='outgoing-recommendations'),
So you forgot your /
on outgoing-recommendations.
Also you should call your redirect
like this
return redirect('outgoing-recommendations', entry='outgoing')
and leave off the kwargs={}
part, because what’s happening is that you’re trying to send in the keyworded arguments kwargs
with it’s nested kwargs.
But what I think you actually want is this
return redirect(reverse('outgoing-recommendations', kwargs={'entry':'outgoing'}))
Source:stackexchange.com