[Answer]-Django NoReverseMatch with correct arguments

1👍

The error is in your regexp.
The \w+ of the ‘last’ group was outside the bracket, and there is a typo on the named group syntax.

This should work: r'^tenants/(?P<first>\w+)/(?P<last>\w+)/$'

👤kanu

Leave a comment