[Answered ]-Django reversing url failure with hyphen in view name

2👍

Your regex does not support the - Hence the error. change \w+ to [\w-]+

Try this:

url(r'^items/(?P<item>[\w-]+)/$', 'dispatcher', name="dispatcher")

Leave a comment