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.
Source:stackexchange.com