1👍
✅
Pass args
to reverse()
as
return HttpResponseRedirect(reverse('show_poll', args=[cat]))
#-----------------------------------------------^ closing bracket moved at the end
Source:stackexchange.com