[Fixed]-NoReverseMatch at Reverse for … with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

1👍

The reverse_lazy() function either takes view function or url name to resolve it not the url path. So you need to call it as

success_url = reverse_lazy('profile/')
#---------------------------^ use url name

However, I’m not sure if '/' character works in url name.

If you have to use path to resolve to an url, use resolve() function.

👤Rohan

Leave a comment